A B C D E F G H I J K L M N O P R S T V W

A

AbstractMatcher<T> - Class in com.google.inject.matcher
Implements and() and or().
AbstractMatcher() - Constructor for class com.google.inject.matcher.AbstractMatcher
 
AbstractModule - Class in com.google.inject
A support class for Modules which reduces repetition and results in a more readable configuration.
AbstractModule() - Constructor for class com.google.inject.AbstractModule
 
acceptScopingVisitor(BindingScopingVisitor<V>) - Method in interface com.google.inject.Binding
Accepts a scoping visitor.
acceptTargetVisitor(BindingTargetVisitor<? super T, V>) - Method in interface com.google.inject.Binding
Accepts a target visitor.
acceptVisitor(ElementVisitor<T>) - Method in interface com.google.inject.spi.Element
Accepts an element visitor.
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.InjectionRequest
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.InterceptorBinding
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.Message
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.ProviderLookup
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.ScopeBinding
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.StaticInjectionRequest
 
acceptVisitor(ElementVisitor<T>) - Method in class com.google.inject.spi.TypeConverterBinding
 
addBinding(K) - Method in class com.google.inject.multibindings.MapBinder
Returns a binding builder used to add a new entry in the map.
addBinding() - Method in class com.google.inject.multibindings.Multibinder
Returns a binding builder used to add a new element in the set.
addError(String, Object...) - Method in class com.google.inject.AbstractModule
 
addError(Throwable) - Method in class com.google.inject.AbstractModule
 
addError(Message) - Method in class com.google.inject.AbstractModule
 
addError(String, Object...) - Method in interface com.google.inject.Binder
Records an error message which will be presented to the user at a later time.
addError(Throwable) - Method in interface com.google.inject.Binder
Records an exception, the full details of which will be logged, and the message of which will be presented to the user at a later time.
addError(Message) - Method in interface com.google.inject.Binder
Records an error message to be presented to the user at a later time.
addForInstanceMethodsAndFields(Class<?>, Collection<InjectionPoint>) - Static method in class com.google.inject.spi.InjectionPoint
Adds all instance method and field injection points on type to injectionPoints.
addForStaticMethodsAndFields(Class<?>, Collection<InjectionPoint>) - Static method in class com.google.inject.spi.InjectionPoint
Adds all static method and field injection points on type to injectionPoints.
and(Matcher<? super T>) - Method in class com.google.inject.matcher.AbstractMatcher
 
and(Matcher<? super T>) - Method in interface com.google.inject.matcher.Matcher
Returns a new matcher which returns true if both this and the given matcher return true.
AnnotatedBindingBuilder<T> - Interface in com.google.inject.binder
See the EDSL examples at Binder.
AnnotatedConstantBindingBuilder - Interface in com.google.inject.binder
See the EDSL examples at Binder.
annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
See the EDSL examples at Binder.
annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
See the EDSL examples at Binder.
annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
See the EDSL examples at Binder.
annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
See the EDSL examples at Binder.
annotatedWith(Class<? extends Annotation>) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
annotatedWith(Annotation) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
annotatedWith(Class<? extends Annotation>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
annotatedWith(Annotation) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
any() - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches any input.
apply(Binder, Iterable<? extends Element>) - Method in class com.google.inject.spi.ModuleWriter
Replays elements against binder.
applyScoping(Binding<?>, ScopedBindingBuilder) - Method in class com.google.inject.spi.ModuleWriter
 
applyTarget(Binding<T>, LinkedBindingBuilder<T>) - Method in class com.google.inject.spi.ModuleWriter
Execute this target against the linked binding builder.
asEagerSingleton() - Method in interface com.google.inject.binder.ScopedBindingBuilder
Instructs the Injector to eagerly initialize this singleton-scoped binding upon creation.
Assisted - Annotation Type in com.google.inject.assistedinject
The @Assisted annotation should be used on paramters within a constructor annotated with @AssistedInject.
AssistedInject - Annotation Type in com.google.inject.assistedinject
Constructors annotated with @AssistedInject indicate that will can be instantiated by the FactoryProvider.

B

bind(Key<T>) - Method in class com.google.inject.AbstractModule
 
bind(TypeLiteral<T>) - Method in class com.google.inject.AbstractModule
 
bind(Class<T>) - Method in class com.google.inject.AbstractModule
 
bind(Key<T>) - Method in interface com.google.inject.Binder
See the EDSL examples at Binder.
bind(TypeLiteral<T>) - Method in interface com.google.inject.Binder
See the EDSL examples at Binder.
bind(Class<T>) - Method in interface com.google.inject.Binder
See the EDSL examples at Binder.
bind(Class<P>, Type) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder
 
bindAll(Binder, ListableBeanFactory) - Static method in class com.google.inject.spring.SpringIntegration
Binds all Spring beans from the given factory by name.
bindConstant() - Method in class com.google.inject.AbstractModule
 
bindConstant() - Method in interface com.google.inject.Binder
See the EDSL examples at Binder.
binder() - Method in class com.google.inject.AbstractModule
Gets direct access to the underlying Binder.
Binder - Interface in com.google.inject
Collects configuration information (primarily bindings) which will be used to create an Injector.
Binding<T> - Interface in com.google.inject
A mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
BindingAnnotation - Annotation Type in com.google.inject
Annotates annotations which are used for binding.
BindingScopingVisitor<V> - Interface in com.google.inject.spi
Visits each of the strategies used to scope an injection.
BindingTargetVisitor<T,V> - Interface in com.google.inject.spi
Visits each of the strategies used to find an instance to satisfy an injection.
bindInterceptor(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in class com.google.inject.AbstractModule
 
bindInterceptor(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in interface com.google.inject.Binder
Binds a method interceptor to methods matched by class and method matchers.
bindProperties(Binder, Map<String, String>) - Static method in class com.google.inject.name.Names
Creates a constant binding to @Named(key) for each entry in properties.
bindProperties(Binder, Properties) - Static method in class com.google.inject.name.Names
Creates a constant binding to @Named(key) for each property.
bindScope(Class<? extends Annotation>, Scope) - Method in class com.google.inject.AbstractModule
 
bindScope(Class<? extends Annotation>, Scope) - Method in interface com.google.inject.Binder
Binds a scope to an annotation.

C

com.google.inject - package com.google.inject
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
com.google.inject.assistedinject - package com.google.inject.assistedinject
Extension for combining factory interfaces with injection.
com.google.inject.binder - package com.google.inject.binder
Interfaces which make up Binder's expression language.
com.google.inject.jndi - package com.google.inject.jndi
JNDI integration
com.google.inject.matcher - package com.google.inject.matcher
Used for matching things.
com.google.inject.multibindings - package com.google.inject.multibindings
Extension for binding multiple instances in a collection.
com.google.inject.name - package com.google.inject.name
Support for binding to string-based names.
com.google.inject.servlet - package com.google.inject.servlet
Servlet API scopes and bindings.
com.google.inject.spi - package com.google.inject.spi
Guice service provider interface
com.google.inject.spring - package com.google.inject.spring
Spring integration
com.google.inject.throwingproviders - package com.google.inject.throwingproviders
Extension for injecting objects that may throw at provision time.
com.google.inject.tools.jmx - package com.google.inject.tools.jmx
JMX integration
configure(Binder) - Method in class com.google.inject.AbstractModule
 
configure() - Method in class com.google.inject.AbstractModule
Configures a Binder via the exposed methods.
configure(Binder) - Method in interface com.google.inject.Module
Contributes bindings and other configurations for this module to a Binder.
configure() - Method in class com.google.inject.servlet.ServletModule
 
ConstantBindingBuilder - Interface in com.google.inject.binder
Binds to a constant value.
contextDestroyed(ServletContextEvent) - Method in class com.google.inject.servlet.GuiceServletContextListener
 
contextInitialized(ServletContextEvent) - Method in class com.google.inject.servlet.GuiceServletContextListener
 
convert(String, TypeLiteral<?>) - Method in interface com.google.inject.spi.TypeConverter
Converts a string value.
convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) - Method in class com.google.inject.AbstractModule
 
convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) - Method in interface com.google.inject.Binder
Binds a type converter.
create(Iterable<? extends Element>) - Method in class com.google.inject.spi.ModuleWriter
Returns a module that executes the specified elements using this executing visitor.
create(Binder) - Static method in class com.google.inject.throwingproviders.ThrowingProviderBinder
 
createInjector(Module...) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules.
createInjector(Iterable<? extends Module>) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules.
createInjector(Stage, Module...) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules, in a given development stage.
createInjector(Stage, Iterable<? extends Module>) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules, in a given development stage.
createInjector(Injector, Iterable<? extends Module>) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules, with the given parent injector.
createInjector(Injector, Module...) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules, with the given parent injector.
createInjector(Injector, Stage, Iterable<? extends Module>) - Static method in class com.google.inject.Guice
Creates an injector for the given set of modules, in a given development stage, with the given parent injector.
CreationException - Exception in com.google.inject
Thrown when errors occur while creating a Injector.
CreationException(Collection<? extends Message>) - Constructor for exception com.google.inject.CreationException
Constructs a new exception for the given errors.
currentStage() - Method in class com.google.inject.AbstractModule
 
currentStage() - Method in interface com.google.inject.Binder
Gets the current stage.

D

DefaultBindingScopingVisitor<V> - Class in com.google.inject.spi
No-op visitor for subclassing.
DefaultBindingScopingVisitor() - Constructor for class com.google.inject.spi.DefaultBindingScopingVisitor
 
DefaultBindingTargetVisitor<T,V> - Class in com.google.inject.spi
No-op visitor for subclassing.
DefaultBindingTargetVisitor() - Constructor for class com.google.inject.spi.DefaultBindingTargetVisitor
 
DefaultElementVisitor<V> - Class in com.google.inject.spi
No-op visitor for subclassing.
DefaultElementVisitor() - Constructor for class com.google.inject.spi.DefaultElementVisitor
 
Dependency<T> - Class in com.google.inject.spi
A variable that can be resolved by an injector.
destroy() - Method in class com.google.inject.servlet.GuiceFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.google.inject.servlet.GuiceFilter
 

E

Element - Interface in com.google.inject.spi
A core component of a module or injector.
Elements - Class in com.google.inject.spi
Exposes elements of a module so they can be inspected, validated or rewritten.
Elements() - Constructor for class com.google.inject.spi.Elements
 
ElementVisitor<V> - Interface in com.google.inject.spi
Visit elements.
equals(Object) - Method in class com.google.inject.Key
 
equals(Object) - Method in class com.google.inject.spi.Dependency
 
equals(Object) - Method in class com.google.inject.spi.InjectionPoint
 
equals(Object) - Method in class com.google.inject.spi.Message
 
equals(Object) - Method in class com.google.inject.TypeLiteral
 

F

FactoryProvider<F,R> - Class in com.google.inject.assistedinject
Provides a mechanism to combine user-specified paramters with Injector-specified paramters when creating new objects.
findBindingsByType(TypeLiteral<T>) - Method in interface com.google.inject.Injector
Finds all bindings to the given type.
forConstructorOf(Class<?>) - Static method in class com.google.inject.spi.InjectionPoint
Returns a new injection point for the injectable constructor of type.
from(Object) - Static method in class com.google.inject.ProviderMethods
Returns a module which creates bindings for provider methods from the given object.
fromJndi(Class<T>, String) - Static method in class com.google.inject.jndi.JndiIntegration
Creates a provider which looks up objects in JNDI using the given name.
fromSpring(Class<T>, String) - Static method in class com.google.inject.spring.SpringIntegration
Creates a provider which looks up objects from Spring using the given name.

G

get() - Method in class com.google.inject.assistedinject.FactoryProvider
 
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() - Method in interface com.google.inject.throwingproviders.ThrowingProvider
 
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.
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
Gets a binding for the given key, or null if no binding for this key is found.
getBinding(Class<T>) - Method in interface com.google.inject.Injector
Gets a binding for the given type, or null if no binding for this type is found.
getBindings() - Method in interface com.google.inject.Injector
Gets all 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
 
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 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.
getErrorMessages() - Method in exception com.google.inject.CreationException
Gets the error messages which resulted in this exception.
getErrorMessages() - Method in exception com.google.inject.ProvisionException
Gets the error messages which resulted in this exception.
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.
getInjector() - Method in class com.google.inject.servlet.GuiceServletContextListener
Override this method to create (or otherwise obtain a reference to) your 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 type; equivalent to getProvider(type).get().
getInstance() - Method in class com.google.inject.spi.InjectionRequest
 
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
 
getKey() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the binding key.
getMember() - Method in class com.google.inject.spi.InjectionPoint
Returns the injected constructor, field, or method.
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.
getMethodMatcher() - Method in class com.google.inject.spi.InterceptorBinding
 
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.
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 injection key.
getProvider() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the provider to which this binding is bound.
getScope() - Method in class com.google.inject.spi.ScopeBinding
 
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.Message
 
getSource() - Method in class com.google.inject.spi.ProviderLookup
 
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 interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the source of this binding.
getSources() - Method in class com.google.inject.spi.Message
 
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
 
getTypeLiteral() - Method in class com.google.inject.Key
Gets the key type.
getTypeMatcher() - Method in class com.google.inject.spi.TypeConverterBinding
 
Guice - Class in com.google.inject
The entry point to the Guice framework.
GuiceFilter - Class in com.google.inject.servlet
Apply this filter to all requests where you plan to use servlet scopes.
GuiceFilter() - Constructor for class com.google.inject.servlet.GuiceFilter
 
GuiceServletContextListener - Class in com.google.inject.servlet
Register your own subclass of this as a servlet context listener if you wish to have injectable servlets that extend InjectedHttpServlet.
GuiceServletContextListener() - Constructor for class com.google.inject.servlet.GuiceServletContextListener
 

H

hashCode() - Method in class com.google.inject.Key
 
hashCode() - Method in class com.google.inject.spi.Dependency
 
hashCode() - Method in class com.google.inject.spi.InjectionPoint
 
hashCode() - Method in class com.google.inject.spi.Message
 
hashCode() - Method in class com.google.inject.TypeLiteral
 

I

identicalTo(Object) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches only the given object.
ImplementedBy - Annotation Type in com.google.inject
A pointer to the default implementation of a type.
in(Class<? extends Annotation>) - Method in interface com.google.inject.binder.ScopedBindingBuilder
See the EDSL examples at Binder.
in(Scope) - Method in interface com.google.inject.binder.ScopedBindingBuilder
See the EDSL examples at Binder.
init(FilterConfig) - Method in class com.google.inject.servlet.GuiceFilter
 
init(ServletConfig) - Method in class com.google.inject.servlet.InjectedHttpServlet
 
initDelegate(Provider<T>) - Method in class com.google.inject.spi.ProviderLookup
 
Inject - Annotation Type in com.google.inject
Annotates members of your implementation class (constructors, methods and fields) into which the Injector should inject values.
InjectedHttpServlet - Class in com.google.inject.servlet
Base class to be extended by all servlets that desire field and method injection to be performed during Servlet.init(javax.servlet.ServletConfig).
InjectedHttpServlet() - Constructor for class com.google.inject.servlet.InjectedHttpServlet
 
InjectionPoint - Class in com.google.inject.spi
A constructor, field or method that can receive injections.
InjectionRequest - Class in com.google.inject.spi
A request to inject the instance fields and methods of an instance.
InjectionRequest(Object, Object) - Constructor for class com.google.inject.spi.InjectionRequest
 
injectMembers(Object) - Method in interface com.google.inject.Injector
Injects dependencies into the fields and methods of an existing object.
Injector - Interface in com.google.inject
Fulfills requests for the object instances that make up your application, always ensuring that these instances are properly injected before they are returned.
inPackage(Package) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches classes in the given package.
install(Module) - Method in class com.google.inject.AbstractModule
 
install(Module) - Method in interface com.google.inject.Binder
Uses the given module to configure more bindings.
inSubpackage(String) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches classes in the given package and its subpackages.
InterceptorBinding - Class in com.google.inject.spi
Registration of interceptors for matching methods of matching classes.
isNullable() - Method in class com.google.inject.spi.Dependency
Returns true if null is a legal value for this dependency.
isOptional() - Method in class com.google.inject.spi.InjectionPoint
Returns true if this injection point shall be skipped if the injector cannot resolve bindings for all required dependencies.

J

JndiIntegration - Class in com.google.inject.jndi
Integrates Guice with JNDI.

K

Key<T> - Class in com.google.inject
Binding key consisting of an injection type and an optional annotation.
Key(Class<? extends Annotation>) - Constructor for class com.google.inject.Key
Constructs a new key.
Key(Annotation) - Constructor for class com.google.inject.Key
Constructs a new key.
Key() - Constructor for class com.google.inject.Key
Constructs a new key.

L

LinkedBindingBuilder<T> - Interface in com.google.inject.binder
See the EDSL examples at Binder.

M

main(String[]) - Static method in class com.google.inject.tools.jmx.Manager
Run with no arguments for usage instructions.
manage(String, Injector) - Static method in class com.google.inject.tools.jmx.Manager
Registers all the bindings of an Injector with the platform MBean server.
manage(MBeanServer, String, Injector) - Static method in class com.google.inject.tools.jmx.Manager
Registers all the bindings of an Injector with the given MBean server.
ManagedBindingMBean - Interface in com.google.inject.tools.jmx
JMX interface to bindings.
Manager - Class in com.google.inject.tools.jmx
Provides a JMX interface to Guice.
Manager() - Constructor for class com.google.inject.tools.jmx.Manager
 
MapBinder<K,V> - Class in com.google.inject.multibindings
An API to bind multiple map entries separately, only to later inject them as a complete map.
Matcher<T> - Interface in com.google.inject.matcher
Returns true or false for a given input.
Matchers - Class in com.google.inject.matcher
Matcher implementations.
matches(T) - Method in interface com.google.inject.matcher.Matcher
Returns true if this matches t, false otherwise.
Message - Class in com.google.inject.spi
An error message and the context in which it occured.
Message(List<Object>, String, Throwable) - Constructor for class com.google.inject.spi.Message
 
Message(Object, String) - Constructor for class com.google.inject.spi.Message
 
Message(String) - Constructor for class com.google.inject.spi.Message
 
Module - Interface in com.google.inject
A module contributes configuration information, typically interface bindings, which will be used to create an Injector.
ModuleWriter - Class in com.google.inject.spi
Creates a Module from a collection of component elements.
ModuleWriter() - Constructor for class com.google.inject.spi.ModuleWriter
 
Multibinder<T> - Class in com.google.inject.multibindings
An API to bind multiple values separately, only to later inject them as a complete collection.

N

Named - Annotation Type in com.google.inject.name
Annotates named things.
named(String) - Static method in class com.google.inject.name.Names
Creates a Named annotation with name as the value.
Names - Class in com.google.inject.name
Utility methods for use with @Named.
newFactory(Class<X>, Class<Y>) - Static method in class com.google.inject.assistedinject.FactoryProvider
 
newMapBinder(Binder, Type, Type) - Static method in class com.google.inject.multibindings.MapBinder
Returns a new mapbinder that collects entries of keyType/valueType in a Map that is itself bound with no binding annotation.
newMapBinder(Binder, Type, Type, Annotation) - Static method in class com.google.inject.multibindings.MapBinder
Returns a new mapbinder that collects entries of keyType/valueType in a Map that is itself bound with annotation.
newMapBinder(Binder, Type, Type, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.MapBinder
Returns a new mapbinder that collects entries of keyType/valueType in a Map that is itself bound with annotationType.
newSetBinder(Binder, Type) - Static method in class com.google.inject.multibindings.Multibinder
Returns a new multibinder that collects instances of type in a Set that is itself bound with no binding annotation.
newSetBinder(Binder, Type, Annotation) - Static method in class com.google.inject.multibindings.Multibinder
Returns a new multibinder that collects instances of type in a Set that is itself bound with annotation.
newSetBinder(Binder, Type, Class<? extends Annotation>) - Static method in class com.google.inject.multibindings.Multibinder
Returns a new multibinder that collects instances of type in a Set that is itself bound with annotationType.
NO_SCOPE - Static variable in class com.google.inject.Scopes
No scope; the same as not applying any scope at all.
not(Matcher<? super T>) - Static method in class com.google.inject.matcher.Matchers
Inverts the given matcher.

O

only(Object) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches objects equal to the given object.
or(Matcher<? super T>) - Method in class com.google.inject.matcher.AbstractMatcher
 
or(Matcher<? super T>) - Method in interface com.google.inject.matcher.Matcher
Returns a new matcher which returns true if either this or the given matcher return true.
OutOfScopeException - Exception in com.google.inject
Thrown from Provider.get() when an attempt is made to access a scoped object while the scope in question is not currently active.
OutOfScopeException(String) - Constructor for exception com.google.inject.OutOfScopeException
 
OutOfScopeException(String, Throwable) - Constructor for exception com.google.inject.OutOfScopeException
 
OutOfScopeException(Throwable) - Constructor for exception com.google.inject.OutOfScopeException
 

P

ProvidedBy - Annotation Type in com.google.inject
A pointer to the default provider type for a type.
Provider<T> - Interface in com.google.inject
Simply, any object capable of providing instances of type T.
ProviderLookup<T> - Class in com.google.inject.spi
A lookup of the provider for a type.
ProviderMethods - Class in com.google.inject
Creates bindings to methods annotated with @Provides.
ProviderMethods() - Constructor for class com.google.inject.ProviderMethods
 
Provides - Annotation Type in com.google.inject
Annotates methods of a Module to create a provider method binding.
ProvisionException - Exception in com.google.inject
Indicates a failure to provide an instance.
ProvisionException(String, Throwable) - Constructor for exception com.google.inject.ProvisionException
 
ProvisionException(String) - Constructor for exception com.google.inject.ProvisionException
 

R

REQUEST - Static variable in class com.google.inject.servlet.ServletScopes
HTTP servlet request scope.
requestInjection(Object...) - Method in class com.google.inject.AbstractModule
 
requestInjection(Object...) - Method in interface com.google.inject.Binder
Upon successful creation, the Injector will inject instance fields and methods of the given objects.
RequestParameters - Annotation Type in com.google.inject.servlet
Apply this to field or parameters of type Map<String, String[]> when you want the HTTP request parameter map to be injected.
RequestScoped - Annotation Type in com.google.inject.servlet
Apply this to implementation classes when you want one instance per request.
requestStaticInjection(Class<?>...) - Method in class com.google.inject.AbstractModule
 
requestStaticInjection(Class<?>...) - Method in interface com.google.inject.Binder
Upon successful creation, the Injector will inject static fields and methods in the given classes.
requireBinding(Key<?>) - Method in class com.google.inject.AbstractModule
Adds a dependency from this module to key.
requireBinding(Class<?>) - Method in class com.google.inject.AbstractModule
Adds a dependency from this module to type.
returns(Matcher<? super Class<?>>) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches methods with matching return types.

S

Scope - Interface in com.google.inject
A scope is a level of visibility that instances provided by Guice may have.
scope(Key<T>, Provider<T>) - Method in interface com.google.inject.Scope
Scopes a provider.
ScopeAnnotation - Annotation Type in com.google.inject
Annotates annotations which are used for scoping.
ScopeBinding - Class in com.google.inject.spi
Registration of a scope annotation with the scope that implements it.
ScopedBindingBuilder - Interface in com.google.inject.binder
See the EDSL examples at Binder.
Scopes - Class in com.google.inject
Built in scope implementations.
ServletModule - Class in com.google.inject.servlet
Configures the servlet scopes and creates bindings for the servlet API objects so you can inject the request, response, session, etc.
ServletModule() - Constructor for class com.google.inject.servlet.ServletModule
 
ServletScopes - Class in com.google.inject.servlet
Servlet scopes.
SESSION - Static variable in class com.google.inject.servlet.ServletScopes
HTTP session scope.
SessionScoped - Annotation Type in com.google.inject.servlet
Apply this to implementation classes when you want one instance per session.
SINGLETON - Static variable in class com.google.inject.Scopes
One instance per Injector.
Singleton - Annotation Type in com.google.inject
Apply this to implementation classes when you want only one instance (per Injector) to be reused for all injections for that binding.
skipSources(Class...) - Method in interface com.google.inject.Binder
Returns a binder that skips classesToSkip when identify the calling code.
SpringIntegration - Class in com.google.inject.spring
Integrates Guice with Spring.
Stage - Enum in com.google.inject
The stage we're running in.
StaticInjectionRequest - Class in com.google.inject.spi
A request to inject the static fields and methods of type.
subclassesOf(Class<?>) - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches subclasses of the given type (as well as the given type).

T

ThrowingProvider<T,E extends Exception> - Interface in com.google.inject.throwingproviders
Alternative to the Guice Provider that throws a checked Exception.
ThrowingProviderBinder - Class in com.google.inject.throwingproviders
Builds a binding for an ThrowingProvider using a fluent API:
ThrowingProviderBinder.SecondaryBinder<P extends ThrowingProvider> - Class in com.google.inject.throwingproviders
 
ThrowingProviderBinder.SecondaryBinder(Class<P>, Type) - Constructor for class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
to(String) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(int) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(long) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(boolean) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(double) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(float) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(short) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(char) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(Class<?>) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(E) - Method in interface com.google.inject.binder.ConstantBindingBuilder
Binds constant to the given value.
to(Class<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
to(TypeLiteral<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
to(Key<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
to(P) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
to(Class<? extends P>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
to(Key<? extends P>) - Method in class com.google.inject.throwingproviders.ThrowingProviderBinder.SecondaryBinder
 
toInstance(T) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
toProvider(Provider<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
toProvider(Class<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
toProvider(Key<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
See the EDSL examples at Binder.
toString() - Method in class com.google.inject.Key
 
toString() - Method in interface com.google.inject.Scope
A short but useful description of this scope.
toString() - Method in class com.google.inject.spi.Dependency
 
toString() - Method in class com.google.inject.spi.InjectionPoint
 
toString() - Method in class com.google.inject.spi.Message
 
toString() - Method in class com.google.inject.TypeLiteral
 
TypeConverter - Interface in com.google.inject.spi
Converts constant string values to a different type.
TypeConverterBinding - Class in com.google.inject.spi
Registration of type converters for matching target types.
TypeLiteral<T> - Class in com.google.inject
Represents a generic type T.
TypeLiteral() - Constructor for class com.google.inject.TypeLiteral
Constructs a new type literal.

V

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're declared.
visitBinding(Binding<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitBinding(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.
visitConstructor(Constructor<? extends T>, Set<InjectionPoint>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a constructor binding.
visitConstructor(Constructor<? extends T>, Set<InjectionPoint>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitConvertedConstant(T) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a binding created from converting a bound instance to a new type.
visitConvertedConstant(T) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
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
 
visitElement(Element) - Method in class com.google.inject.spi.DefaultElementVisitor
Visit element and return a result.
visitInjectionRequest(InjectionRequest) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitInjectionRequest(InjectionRequest) - Method in interface com.google.inject.spi.ElementVisitor
Visit a request to inject the instance fields and methods of an instance.
visitInstance(T, Set<InjectionPoint>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a instance binding.
visitInstance(T, Set<InjectionPoint>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitInterceptorBinding(InterceptorBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitInterceptorBinding(InterceptorBinding) - Method in interface com.google.inject.spi.ElementVisitor
Visit a registration of interceptors for matching methods of matching classes.
visitKey(Key<? extends T>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a linked key binding.
visitKey(Key<? extends T>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitMessage(Message) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitMessage(Message) - Method in interface com.google.inject.spi.ElementVisitor
Visit an error message and the context in which it occured.
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
 
visitOther() - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitProvider(Provider<? extends T>, Set<InjectionPoint>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a provider instance binding.
visitProvider(Provider<? extends T>, Set<InjectionPoint>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitProviderBinding(Key<?>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a binding to a Provider that delegates to the binding for the provided type.
visitProviderBinding(Key<?>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitProviderKey(Key<? extends Provider<? extends T>>) - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit a provider key binding.
visitProviderKey(Key<? extends Provider<? extends T>>) - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 
visitProviderLookup(ProviderLookup<T>) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitProviderLookup(ProviderLookup<T>) - Method in interface com.google.inject.spi.ElementVisitor
Visit a lookup of the provider for a type.
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
 
visitScopeBinding(ScopeBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitScopeBinding(ScopeBinding) - Method in interface com.google.inject.spi.ElementVisitor
Visit a registration of a scope annotation with the scope that implements it.
visitStaticInjectionRequest(StaticInjectionRequest) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitStaticInjectionRequest(StaticInjectionRequest) - Method in interface com.google.inject.spi.ElementVisitor
Visit a request to inject the static fields and methods of type.
visitTypeConverterBinding(TypeConverterBinding) - Method in class com.google.inject.spi.DefaultElementVisitor
 
visitTypeConverterBinding(TypeConverterBinding) - Method in interface com.google.inject.spi.ElementVisitor
Visit a registration of type converters for matching target types.
visitUntargetted() - Method in interface com.google.inject.spi.BindingTargetVisitor
Visit an untargetted binding.
visitUntargetted() - Method in class com.google.inject.spi.DefaultBindingTargetVisitor
 

W

withSource(Object) - Method in interface com.google.inject.Binder
Returns a binder that uses source as the reference location for configuration errors.
writeBind(Binder, Binding<T>) - Method in class com.google.inject.spi.ModuleWriter
 
writeBindInterceptor(Binder, InterceptorBinding) - Method in class com.google.inject.spi.ModuleWriter
 
writeBindScope(Binder, ScopeBinding) - Method in class com.google.inject.spi.ModuleWriter
 
writeConvertToTypes(Binder, TypeConverterBinding) - Method in class com.google.inject.spi.ModuleWriter
 
writeGetProvider(Binder, ProviderLookup<T>) - Method in class com.google.inject.spi.ModuleWriter
 
writeMessage(Binder, Message) - Method in class com.google.inject.spi.ModuleWriter
 
writeReplace() - Method in class com.google.inject.Key
Returns the canonical form of this key for serialization.
writeReplace() - Method in class com.google.inject.TypeLiteral
Returns the canonical form of this type literal for serialization.
writeRequestInjection(Binder, InjectionRequest) - Method in class com.google.inject.spi.ModuleWriter
 
writeRequestStaticInjection(Binder, StaticInjectionRequest) - Method in class com.google.inject.spi.ModuleWriter
 

A B C D E F G H I J K L M N O P R S T V W