Returns the appropriate instance for the given injection key.
Returns the appropriate instance for the given injection key.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
com.google.inject.Key binding key of the bound instance to return from the object graph.
bound instance of type T represented by com.google.inject.Key key.
Returns the appropriate instance for the given key constructed from the passed class and given java.lang.annotation.Annotation class.
Returns the appropriate instance for the given key constructed from the passed class and given java.lang.annotation.Annotation class.
type of the bound instance to return from the object graph.
type of the annotation class used to disambiguate the bound type T.
the class of type T of the bound instance to return from the object graph.
java.lang.annotation.Annotation class used to disambiguate the bound type T.
bound instance of type T.
Returns the appropriate instance for the given key constructed from the passed class and given java.lang.annotation.Annotation annotation.
Returns the appropriate instance for the given key constructed from the passed class and given java.lang.annotation.Annotation annotation.
When feasible, avoid using this method, in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
the class of type T of the bound instance to return from the object graph.
java.lang.annotation.Annotation instance used to disambiguate the bound type T.
bound instance of type T.
Returns the appropriate instance for the given injection type.
Returns the appropriate instance for the given injection type.
When feasible, avoid using this method, in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
the class of type T of the bound instance to return from the object graph.
bound instance of type T.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation class.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation class.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
class of java.lang.annotation.Annotation used to disambiguate the bound type T.
bound instance of type T annotated with annotation class.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation annotation.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation annotation.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
java.lang.annotation.Annotation instance used to disambiguate the bound type T.
bound instance of type T annotated with annotation.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation type Ann.
Returns the appropriate instance for the given key constructed from the passed type T and given java.lang.annotation.Annotation type Ann.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
type of the annotation used to disambiguate the bound type T.
bound instance of type T annotated with annotation type Ann.
Returns the appropriate instance for the given key constructed from the passed type T.
Returns the appropriate instance for the given key constructed from the passed type T.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
bound instance of type T.
Returns the appropriate instance for the given key constructed from the passed type T and given String name which is interpreted to be the value of a @Named annotation.
Returns the appropriate instance for the given key constructed from the passed type T and given String name which is interpreted to be the value of a @Named annotation.
When feasible, avoid using this method in favor of having the Injector
inject your dependencies ahead of time via annotating your constructor
with @Inject
.
type of the bound instance to return from the object graph.
String value of @Named
annotation.
bound instance of type T annotated with @Named(name)
.
(Since version 2017-09-25) Users should prefer injector.instance[T](java.lang.annotation.Annotation