- get(Class<T>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(Class<T>, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- get(Class<T>, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get(Type) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(Type, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- get(Type, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get(TypeLiteral<T>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type.
- get(TypeLiteral<T>, Class<? extends Annotation>) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation type.
- get(TypeLiteral<T>, Annotation) - Static method in class com.google.inject.Key
-
Gets a key for an injection type and an annotation.
- get() - Method in interface com.google.inject.Provider
-
Provides an instance of T
.
- get(Key<T>) - Static method in class com.google.inject.spi.Dependency
-
Returns a new dependency that is not attached to an injection point.
- get(Type) - Static method in class com.google.inject.TypeLiteral
-
Gets type literal for the given Type
instance.
- get(Class<T>) - Static method in class com.google.inject.TypeLiteral
-
Gets type literal for the given Class
instance.
- getAllBindings() - Method in interface com.google.inject.Injector
-
Returns a snapshot of this injector's bindings, both explicit and
just-in-time.
- getAnnotation() - Method in class com.google.inject.Key
-
Gets the annotation.
- getAnnotationType() - Method in class com.google.inject.Key
-
Gets the annotation type.
- getAnnotationType() - Method in class com.google.inject.spi.ScopeBinding
-
- getBinding(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the binding for the given injection key.
- getBinding(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the binding for the given type.
- getBindings() - Method in interface com.google.inject.Injector
-
Returns this injector's explicit bindings.
- getCause() - Method in class com.google.inject.spi.Message
-
Returns the throwable that caused this message, or null
if this
message was not caused by a throwable.
- getClassMatcher() - Method in class com.google.inject.spi.InterceptorBinding
-
- getConstructor() - Method in interface com.google.inject.spi.ConstructorBinding
-
Gets the constructor this binding injects.
- getDeclaringType() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the generic type that defines this injection point.
- getDelegate() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Returns the delegate members injector, or null
if it has not yet been initialized.
- getDelegate() - Method in class com.google.inject.spi.ProviderLookup
-
Returns the delegate provider, or null
if it has not yet been initialized.
- getDependencies() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns a singleton set containing only the converted key.
- getDependencies() - Method in interface com.google.inject.spi.HasDependencies
-
Returns the known dependencies for this type.
- getDependencies() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the dependencies for this injection point.
- getElements(Module...) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by modules
.
- getElements(Stage, Module...) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by modules
.
- getElements(Iterable<? extends Module>) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by modules
.
- getElements(Stage, Iterable<? extends Module>) - Static method in class com.google.inject.spi.Elements
-
Records the elements executed by modules
.
- getElements() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the configuration information in this private environment.
- getErrorMessages() - Method in exception com.google.inject.ConfigurationException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception com.google.inject.CreationException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception com.google.inject.ProvisionException
-
Returns messages for the errors that caused this exception.
- getExceptionTypes(Member) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic exception types thrown by constructor
.
- getExistingBinding(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the binding if it already exists, or null if does not exist.
- getExposedKeys() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the unique exposed keys for these private elements.
- getExposedSource(Key<?>) - Method in interface com.google.inject.spi.PrivateElements
-
Returns an arbitrary object containing information about the "place" where this key was
exposed.
- getFieldType(Field) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic type of field
.
- getInjectableMembers() - Method in interface com.google.inject.spi.ConstructorBinding
-
Returns all instance method and field injection points on type
.
- getInjectionPoint() - Method in class com.google.inject.spi.Dependency
-
Returns the injection point to which this dependency belongs, or null if this dependency isn't
attached to a particular injection point.
- getInjectionPoints() - Method in class com.google.inject.spi.InjectionRequest
-
Returns the instance methods and fields of instance
that will be injected to fulfill
this request.
- getInjectionPoints() - Method in interface com.google.inject.spi.InstanceBinding
-
Returns the field and method injection points of the instance, injected at injector-creation
time only.
- getInjectionPoints() - Method in interface com.google.inject.spi.ProviderInstanceBinding
-
Returns the field and method injection points of the provider, injected at injector-creation
time only.
- getInjectionPoints() - Method in class com.google.inject.spi.StaticInjectionRequest
-
Returns the static methods and fields of type
that will be injected to fulfill this
request.
- getInjector() - Method in interface com.google.inject.spi.PrivateElements
-
Returns the child injector that hosts these private elements, or null if the elements haven't
been used to create an injector.
- getInstance(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the appropriate instance for the given injection key; equivalent to getProvider(key).get()
.
- getInstance(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the appropriate instance for the given injection type; equivalent to getProvider(type).get()
.
- getInstance() - Method in class com.google.inject.spi.InjectionRequest
-
- getInstance() - Method in interface com.google.inject.spi.InstanceBinding
-
Returns the user-supplied instance.
- getInterceptors() - Method in class com.google.inject.spi.InterceptorBinding
-
- getKey() - Method in interface com.google.inject.Binding
-
Returns the key for this binding.
- getKey() - Method in class com.google.inject.spi.Dependency
-
Returns the key to the binding that satisfies this dependency.
- getKey() - Method in class com.google.inject.spi.ProviderLookup
-
- getLinkedKey() - Method in interface com.google.inject.spi.LinkedKeyBinding
-
Returns the linked key used to resolve injections.
- getListener() - Method in class com.google.inject.spi.TypeListenerBinding
-
Returns the registered listener.
- getMember() - Method in class com.google.inject.spi.InjectionPoint
-
Returns the injected constructor, field, or method.
- getMembersInjector(Class<T>) - Method in class com.google.inject.AbstractModule
-
- getMembersInjector(TypeLiteral<T>) - Method in class com.google.inject.AbstractModule
-
- getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.Binder
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMembersInjector(Class<T>) - Method in interface com.google.inject.Binder
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.Injector
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMembersInjector(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMembersInjector(Class<T>) - Method in class com.google.inject.PrivateModule
-
- getMembersInjector(TypeLiteral<T>) - Method in class com.google.inject.PrivateModule
-
- getMembersInjector() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Returns the looked up members injector.
- getMembersInjector(TypeLiteral<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMembersInjector(Class<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type T
.
- getMessage() - Method in exception com.google.inject.ConfigurationException
-
- getMessage() - Method in exception com.google.inject.CreationException
-
- getMessage() - Method in exception com.google.inject.ProvisionException
-
- getMessage() - Method in class com.google.inject.spi.Message
-
Gets the error message text.
- getMethodInterceptors() - Method in interface com.google.inject.spi.ConstructorBinding
-
Returns the interceptors applied to each method, in the order that they will be applied.
- getMethodMatcher() - Method in class com.google.inject.spi.InterceptorBinding
-
- getModule(Iterable<? extends Element>) - Static method in class com.google.inject.spi.Elements
-
Returns the module composed of elements
.
- getParameterIndex() - Method in class com.google.inject.spi.Dependency
-
Returns the index of this dependency in the injection point's parameter list, or -1
if
this dependency does not belong to a parameter list.
- getParameterTypes(Member) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic parameter types of methodOrConstructor
.
- getParent() - Method in interface com.google.inject.Injector
-
Returns this injector's parent, or null
if this is a top-level injector.
- getPartialValue() - Method in exception com.google.inject.ConfigurationException
-
Returns a value that was only partially computed due to this exception.
- getPrivateElements() - Method in interface com.google.inject.spi.ExposedBinding
-
Returns the enclosed environment that holds the original binding.
- getProvidedKey() - Method in interface com.google.inject.spi.ProviderBinding
-
- getProvider(Key<T>) - Method in class com.google.inject.AbstractModule
-
- getProvider(Class<T>) - Method in class com.google.inject.AbstractModule
-
- getProvider(Key<T>) - Method in interface com.google.inject.Binder
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Class<T>) - Method in interface com.google.inject.Binder
-
Returns the provider used to obtain instances for the given injection type.
- getProvider() - Method in interface com.google.inject.Binding
-
Returns the scoped provider guice uses to fulfill requests for this
binding.
- getProvider(Key<T>) - Method in interface com.google.inject.Injector
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Class<T>) - Method in interface com.google.inject.Injector
-
Returns the provider used to obtain instances for the given type.
- getProvider(Key<T>) - Method in class com.google.inject.PrivateModule
-
- getProvider(Class<T>) - Method in class com.google.inject.PrivateModule
-
- getProvider() - Method in class com.google.inject.spi.ProviderLookup
-
Returns the looked up provider.
- getProvider(Key<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the provider used to obtain instances for the given injection key.
- getProvider(Class<T>) - Method in interface com.google.inject.spi.TypeEncounter
-
Returns the provider used to obtain instances for the given injection type.
- getProviderInstance() - Method in interface com.google.inject.spi.ProviderInstanceBinding
-
Returns the user-supplied, unscoped provider.
- getProviderKey() - Method in interface com.google.inject.spi.ProviderKeyBinding
-
Returns the key used to resolve the provider's binding.
- getRawType() - Method in class com.google.inject.TypeLiteral
-
Returns the raw (non-generic) type for this type.
- getReturnType(Method) - Method in class com.google.inject.TypeLiteral
-
Returns the resolved generic return type of method
.
- getScope() - Method in class com.google.inject.spi.ScopeBinding
-
- getScopeBindings() - Method in interface com.google.inject.Injector
-
Returns a map containing all scopes in the injector.
- getSource() - Method in class com.google.inject.spi.DisableCircularProxiesOption
-
- getSource() - Method in interface com.google.inject.spi.Element
-
Returns an arbitrary object containing information about the "place" where this element was
configured.
- getSource() - Method in class com.google.inject.spi.InjectionRequest
-
- getSource() - Method in class com.google.inject.spi.InterceptorBinding
-
- getSource() - Method in class com.google.inject.spi.MembersInjectorLookup
-
- getSource() - Method in class com.google.inject.spi.Message
-
- getSource() - Method in class com.google.inject.spi.ProviderLookup
-
- getSource() - Method in class com.google.inject.spi.RequireExplicitBindingsOption
-
- getSource() - Method in class com.google.inject.spi.ScopeBinding
-
- getSource() - Method in class com.google.inject.spi.StaticInjectionRequest
-
- getSource() - Method in class com.google.inject.spi.TypeConverterBinding
-
- getSource() - Method in class com.google.inject.spi.TypeListenerBinding
-
- getSourceKey() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the key for the source binding.
- getSources() - Method in class com.google.inject.spi.Message
-
- getSupertype(Class<?>) - Method in class com.google.inject.TypeLiteral
-
Returns the generic form of supertype
.
- getType() - Method in class com.google.inject.spi.InjectionRequest
-
- getType() - Method in class com.google.inject.spi.MembersInjectorLookup
-
Gets the type containing the members to be injected.
- getType() - Method in class com.google.inject.spi.StaticInjectionRequest
-
- getType() - Method in class com.google.inject.TypeLiteral
-
Gets underlying Type
instance.
- getTypeConverter() - Method in class com.google.inject.spi.TypeConverterBinding
-
- getTypeConverterBinding() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the type converter binding used to convert the constant.
- getTypeConverterBindings() - Method in interface com.google.inject.Injector
-
Returns a set containing all type converter bindings in the injector.
- getTypeLiteral() - Method in class com.google.inject.Key
-
Gets the key type.
- getTypeMatcher() - Method in class com.google.inject.spi.TypeConverterBinding
-
- getTypeMatcher() - Method in class com.google.inject.spi.TypeListenerBinding
-
Returns the type matcher which chooses which types the listener should be notified of.
- getValue() - Method in interface com.google.inject.spi.ConvertedConstantBinding
-
Returns the converted value.
- Guice - Class in com.google.inject
-
The entry point to the Guice framework.
- guicify(<any>) - Static method in class com.google.inject.util.Providers
-
Returns a Guice-friendly com.google.inject.Provider
for the given
JSR-330 javax.inject.Provider
.
- valueOf(String) - Static method in enum com.google.inject.Stage
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.inject.Stage
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- visit(InstanceBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a instance binding.
- visit(ProviderInstanceBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a provider instance binding.
- visit(ProviderKeyBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a provider key binding.
- visit(LinkedKeyBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a linked key binding.
- visit(ExposedBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding to a key exposed from an enclosed private environment.
- visit(UntargettedBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit an untargetted binding.
- visit(ConstructorBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a constructor binding.
- visit(ConvertedConstantBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding created from converting a bound instance to a new type.
- visit(ProviderBinding<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
-
Visit a binding to a
Provider
that delegates to the binding for the
provided type.
- visit(InstanceBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ProviderInstanceBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ProviderKeyBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(LinkedKeyBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ExposedBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(UntargettedBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ConstructorBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ConvertedConstantBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(ProviderBinding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
- visit(Message) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(Binding<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(InterceptorBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(ScopeBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(TypeConverterBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(ProviderLookup<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(InjectionRequest<?>) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(StaticInjectionRequest) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(PrivateElements) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(MembersInjectorLookup<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(TypeListenerBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(DisableCircularProxiesOption) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(RequireExplicitBindingsOption) - Method in class com.google.inject.spi.DefaultElementVisitor
-
- visit(Binding<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a mapping from a key (type and optional annotation) to the strategy for getting
instances of the type.
- visit(InterceptorBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of interceptors for matching methods of matching classes.
- visit(ScopeBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of a scope annotation with the scope that implements it.
- visit(TypeConverterBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a registration of type converters for matching target types.
- visit(InjectionRequest<?>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a request to inject the instance fields and methods of an instance.
- visit(StaticInjectionRequest) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a request to inject the static fields and methods of type.
- visit(ProviderLookup<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a lookup of the provider for a type.
- visit(MembersInjectorLookup<T>) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a lookup of the members injector.
- visit(Message) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit an error message and the context in which it occured.
- visit(PrivateElements) - Method in interface com.google.inject.spi.ElementVisitor
-
- visit(TypeListenerBinding) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit an injectable type listener binding.
- visit(RequireExplicitBindingsOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a require explicit bindings command.
- visit(DisableCircularProxiesOption) - Method in interface com.google.inject.spi.ElementVisitor
-
Visit a disable circular proxies command.
- visitEagerSingleton() - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit an eager singleton or single instance.
- visitEagerSingleton() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-
- visitNoScoping() - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit an unspecified or unscoped strategy.
- visitNoScoping() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-
- visitOther() - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-
Default visit implementation.
- visitOther(Binding<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
-
Default visit implementation.
- visitOther(Element) - Method in class com.google.inject.spi.DefaultElementVisitor
-
Default visit implementation.
- visitScope(Scope) - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit a scope instance.
- visitScope(Scope) - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-
- visitScopeAnnotation(Class<? extends Annotation>) - Method in interface com.google.inject.spi.BindingScopingVisitor
-
Visit a scope annotation.
- visitScopeAnnotation(Class<? extends Annotation>) - Method in class com.google.inject.spi.DefaultBindingScopingVisitor
-