public interface IInjectorFactory
Injector creation when working with dependency injection.| Modifier and Type | Method and Description |
|---|---|
default com.google.inject.Injector |
getInjector(com.google.inject.Injector parent,
com.google.inject.Stage stage,
com.google.inject.Module... modules)
Adding this method breaks existing implementations therefore for the time being (until
deprecated method is removed) it calls the existing method.
|
com.google.inject.Injector |
getInjector(com.google.inject.Stage stage,
com.google.inject.Module... modules)
Deprecated.
- As of TestNG
7.5.0 |
@Deprecated com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
7.5.0getInjector(Injector, Stage, Module...) should be used instead.stage - - A Stage object that defines the appropriate stagemodules - - An array of ModuleInjector instance that can be used to perform dependency
injection.default com.google.inject.Injector getInjector(@Nullable com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)
parent - - Parent Injector instance that was built with parent
injectorstage - - A Stage object that defines the appropriate stagemodules - - An array of ModuleInjector instance that can be used to perform dependency
injection.Copyright © 2025. All rights reserved.