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.
Note that
getInjector(Injector, Stage, Module...) should be used instead. |
@Deprecated com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
getInjector(Injector, Stage, Module...)
should be used instead.stage
- - A Stage
object that defines the appropriate stagemodules
- - An array of Module
Injector
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 Module
Injector
instance that can be used to perform dependency
injection.