A B C D E F G H I K L M N O 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
 
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.
annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.BindingAnnotationBuilder
Specifies the marker annotation type for this binding.
annotatedWith(Annotation) - Method in interface com.google.inject.binder.BindingAnnotationBuilder
Specifies an annotation value for this binding.
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.
any() - Static method in class com.google.inject.matcher.Matchers
Returns a matcher which matches any input.

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
Creates a binding to a key.
bind(TypeLiteral<T>) - Method in interface com.google.inject.Binder
Creates a binding to a type.
bind(Class<T>) - Method in interface com.google.inject.Binder
Creates a binding to a type.
bindConstant(Class<? extends Annotation>) - Method in class com.google.inject.AbstractModule
 
bindConstant(Annotation) - Method in class com.google.inject.AbstractModule
 
bindConstant(Annotation) - Method in interface com.google.inject.Binder
Binds a constant value to an annotation.
bindConstant(Class<? extends Annotation>) - Method in interface com.google.inject.Binder
Binds a constant value to an annotation.
binder() - Method in class com.google.inject.AbstractModule
Gets direct access to the underlying Binder.
Binder - Interface in com.google.inject
Used by Module implementations to configure bindings.
Binding<T> - Class in com.google.inject
A binding from a Key (type and name) to an instance locator.
BindingAnnotation - Annotation Type in com.google.inject
Annotates annotations which are used for binding.
BindingAnnotationBuilder<T> - Interface in com.google.inject.binder
Specifies the annotation of this binding.
BindingBuilder<T> - Interface in com.google.inject.binder
Specifies the attributes of a binding.
BindingImplementationBuilder<T> - Interface in com.google.inject.binder
Specifies an implementation for a binding.
BindingScopeBuilder - Interface in com.google.inject.binder
Specifies the scope for a binding.
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 property.
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 container.
com.google.inject.binder - package com.google.inject.binder
Interface which make up Binder's domain-specific language (DSL).
com.google.inject.matcher - package com.google.inject.matcher
A matcher API.
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.tools.jmx - package com.google.inject.tools.jmx
 
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 to a Binder.
configure() - Method in class com.google.inject.servlet.ServletModule
 
ConstantBindingBuilder - Interface in com.google.inject.binder
Javadoc.
Container - Interface in com.google.inject
Injects dependencies into constructors, methods and fields annotated with @Inject.
CONTAINER - Static variable in class com.google.inject.Scopes
One instance per container.
ContainerScoped - Annotation Type in com.google.inject
Apply this to implementation classes when you want one instance per container, as opposed to one instance per injection.
Context - Interface in com.google.inject
Context of the current injection.
createContainer(Module...) - Static method in class com.google.inject.Guice
Creates a Container from Modules.
createContainer(Iterable<Module>) - Static method in class com.google.inject.Guice
Creates a Container from Modules.
createContainer(Stage, Module...) - Static method in class com.google.inject.Guice
Creates a Container from Modules in a given development Stage.
createContainer(Stage, Iterable<Module>) - Static method in class com.google.inject.Guice
Creates a Container from Modules in a given development Stage.
CreationException - Exception in com.google.inject
Thrown when errors occur while creating a Container.
CreationException(Collection<Message>) - Constructor for exception com.google.inject.CreationException
Constructs a new exception for the given errors.

D

DEFAULT - Static variable in class com.google.inject.Scopes
The default scope, one instance per injection.
defaultSource() - Static method in class com.google.inject.spi.SourceProviders
Returns the current source obtained from the default provider.
destroy() - Method in class com.google.inject.servlet.GuiceFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.google.inject.servlet.GuiceFilter
 

E

eagerlyInContainer() - Method in interface com.google.inject.binder.BindingScopeBuilder
Instructs the Container to eagerly load this container-scoped binding upon creation.
equals(Object) - Method in class com.google.inject.Key
 
equals(Object) - Method in class com.google.inject.spi.Message
 
equals(Object) - Method in class com.google.inject.TypeLiteral
 

F

Factory<T> - Interface in com.google.inject
Generates instances of T for a binding.
findBindingsByType(TypeLiteral<T>) - Method in interface com.google.inject.Container
Finds all bindings to the given type.

G

get(Context) - Method in interface com.google.inject.Factory
Generates an instance of T given the context of the injection.
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.Locator
Locates an instance of T.
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.
getBinding(Key<T>) - Method in interface com.google.inject.Container
Gets a binding for the given key.
getBindings() - Method in interface com.google.inject.Container
Gets all explicit bindings.
getContainer() - Method in interface com.google.inject.Context
Gets the Container.
getErrorMessages() - Method in exception com.google.inject.CreationException
Gets the error messages which resulted in this exception.
getKey() - Method in class com.google.inject.Binding
Gets the key for this binding.
getKey() - Method in interface com.google.inject.Context
Gets the binding key for the object currently being retrieved.
getKey() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the binding key.
getLocator() - Method in class com.google.inject.Binding
Gets the locator which returns instances of T.
getLocator(Key<T>) - Method in interface com.google.inject.Container
Gets the locator bound to the given key.
getLocator(Class<T>) - Method in interface com.google.inject.Container
Gets the locator bound to the given type.
getLocator() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the locator to which this binding is bound.
getMember() - Method in interface com.google.inject.Context
Gets the field, method or constructor which is being injected.
getMessage() - Method in exception com.google.inject.CreationException
 
getMessage() - Method in class com.google.inject.spi.Message
Gets the error message text.
getParameterIndex() - Method in interface com.google.inject.Context
Gets the index of the parameter which is being injected.
getSkippedClassNames() - Static method in class com.google.inject.spi.SourceProviders
Gets the set of class names which should be skipped by stacktrace-based providers.
getSource() - Method in class com.google.inject.Binding
Gets the source object, an arbitrary object which points back to the configuration which resulted in this binding.
getSource() - Method in class com.google.inject.spi.Message
Gets the source of the configuration which resulted in this error message.
getSource() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
Gets the source of this binding.
getSourceString() - Method in class com.google.inject.spi.Message
Returns a string representation of the source object.
getType() - Method in class com.google.inject.Key
Gets the key type.
getType() - Method in class com.google.inject.TypeLiteral
Gets underlying Type instance.
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
 

H

hashCode() - Method in class com.google.inject.Key
 
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.
in(Class<? extends Annotation>) - Method in interface com.google.inject.binder.BindingScopeBuilder
Specifies the scope.
in(Scope) - Method in interface com.google.inject.binder.BindingScopeBuilder
Specifies the scope.
init(FilterConfig) - Method in class com.google.inject.servlet.GuiceFilter
 
Inject - Annotation Type in com.google.inject
Annotates members of your implementation class (constructors, methods and fields) into which the container should inject references or values.
injectMembers(Object) - Method in interface com.google.inject.Container
Injects dependencies into the fields and methods of an existing object.
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.

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

link(Key<T>) - Method in class com.google.inject.AbstractModule
 
link(Class<T>) - Method in class com.google.inject.AbstractModule
 
link(TypeLiteral<T>) - Method in class com.google.inject.AbstractModule
 
link(Key<T>) - Method in interface com.google.inject.Binder
Links a key to another binding.
link(Class<T>) - Method in interface com.google.inject.Binder
Links a type to another binding.
link(TypeLiteral<T>) - Method in interface com.google.inject.Binder
Links a type to another binding.
LinkedBindingBuilder<T> - Interface in com.google.inject.binder
Javadoc.
Locator<T> - Interface in com.google.inject
Locates bound instances of T.

M

main(String[]) - Static method in class com.google.inject.tools.jmx.Manager
Run with no arguments for usage instructions.
manage(String, Container) - Static method in class com.google.inject.tools.jmx.Manager
Registers the bindings for the container with the platform MBean server.
manage(MBeanServer, String, Container) - Static method in class com.google.inject.tools.jmx.Manager
Registers the bindings for the container 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
 
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
A 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 a set of binding configurations, typically interface bindings, to a Binder which is later used to create a Container.

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.
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.

R

REQUEST - Static variable in class com.google.inject.servlet.ServletScopes
HTTP servlet request scope.
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 Container will inject static fields and methods in the given classes.
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 which bound objects can reside in.
scope(Key<T>, Locator<T>) - Method in interface com.google.inject.Scope
Scopes a locator.
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.
skip(Class<?>) - Static method in class com.google.inject.spi.SourceProviders
Instructs stacktrace-based providers to skip the given class in the stack trace when determining the source.
source() - Method in interface com.google.inject.spi.SourceProvider
Creates an object pointing to the current location within the configuration.
SourceProvider - Interface in com.google.inject.spi
Provides source objects to the BinderImpl.
SourceProviders - Class in com.google.inject.spi
Provides access to the default SourceProvider implementation and common controls for certain implementations.
Stage - Enum in com.google.inject
The stage we're running in.
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

to(Class<? extends T>) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to instances of the given implementation class.
to(TypeLiteral<? extends T>) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to instances of the given implementation class.
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(Key<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
Links to another binding with the given key.
to(Class<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
Links to another binding with the given type.
to(TypeLiteral<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
Links to another binding with the given type.
toFactory(Factory<? extends T>) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to instances generated by the given factory.
toFactory(Class<? extends Factory<? extends T>>) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to instances from the factory bound to the given factory type.
toFactory(Key<? extends Factory<? extends T>>) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to instances from the factory bound to the given key.
toInstance(T) - Method in interface com.google.inject.binder.BindingImplementationBuilder
Binds to the given instance.
toString() - Method in class com.google.inject.Binding
 
toString() - Method in class com.google.inject.Key
 
toString() - Method in class com.google.inject.spi.Message
 
toString() - Method in class com.google.inject.TypeLiteral
 
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.

W

withDefault(SourceProvider, Runnable) - Static method in class com.google.inject.spi.SourceProviders
Sets the default source provider, runs the given command, and then restores the previous default source provider.

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