A B C D E F G H I 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
 
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 class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the annotation type for this binding.
annotatedWith(Annotation) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies an annotation 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 class com.google.inject.ContainerBuilder
Binds the given key.
bind(TypeLiteral<T>) - Method in class com.google.inject.ContainerBuilder
Binds the given type.
bind(Class<T>) - Method in class com.google.inject.ContainerBuilder
Binds the given 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 class com.google.inject.ContainerBuilder
Binds a constant to the given annotation.
bindConstant(Class<? extends Annotation>) - Method in class com.google.inject.ContainerBuilder
Binds a constant to the given annotation type.
Binder - Annotation Type in com.google.inject
Annotates annotations which are used for binding.
Binding<T> - Class in com.google.inject
A binding from a Key (type and name) to an implementation.
bindProperties(ContainerBuilder, Map<String, String>) - Static method in class com.google.inject.name.Names
Binds a string constant for each property.
bindProperties(ContainerBuilder, Properties) - Static method in class com.google.inject.name.Names
Binds a string constant for each property.
builder() - Method in class com.google.inject.AbstractModule
Gets the builder.

C

com.google.inject - package com.google.inject
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection container.
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
configure(ContainerBuilder) - Method in class com.google.inject.AbstractModule
 
configure() - Method in class com.google.inject.AbstractModule
Configures a ContainerBuilder via the exposed methods.
configure(ContainerBuilder) - Method in interface com.google.inject.Module
Contributes bindings and other configurations to a container builder, so that the resulting Container will include this module properly set up.
configure() - Method in class com.google.inject.servlet.ServletModule
 
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.
ContainerBuilder - Class in com.google.inject
Builds a dependency injection Container.
ContainerBuilder(Stage) - Constructor for class com.google.inject.ContainerBuilder
Constructs a new builder.
ContainerBuilder() - Constructor for class com.google.inject.ContainerBuilder
Constructs a new builder for a development environment (see Stage.DEVELOPMENT).
ContainerBuilder.BindingBuilder<T> - Class in com.google.inject
Binds a Key to an implementation in a given scope.
ContainerBuilder.ConstantBindingBuilder - Class in com.google.inject
Builds a constant binding.
ContainerBuilder.LinkedBindingBuilder<T> - Class in com.google.inject
Links one binding to another.
ContainerCreationException - Exception in com.google.inject
Thrown when errors occur while creating a Container.
ContainerCreationException(Collection<Message>) - Constructor for exception com.google.inject.ContainerCreationException
Constructs a new exception for the given errors.
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.
ContextualFactory<T> - Interface in com.google.inject
Gets instances of T.
create() - Method in class com.google.inject.ContainerBuilder
Creates a Container instance.
createBinding(ContainerImpl) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
 

D

DEFAULT - Static variable in class com.google.inject.Scopes
The default scope, one instance per injection.
DefaultSourceProvider - Class in com.google.inject.spi
A source provider which returns ContainerBuilder's caller's StackTraceElement.
DefaultSourceProvider() - Constructor for class com.google.inject.spi.DefaultSourceProvider
 
destroy() - Method in class com.google.inject.servlet.GuiceFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class com.google.inject.servlet.GuiceFilter
 

E

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
Gets instances of T.
fillInStackTrace() - Method in exception com.google.inject.ContainerCreationException
 
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.ContextualFactory
Gets an instance of T.
get() - Method in interface com.google.inject.Factory
Gets an instance of T.
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(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.
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 bindings.
getContainer() - Method in interface com.google.inject.Context
Gets the Container.
getErrorMessages() - Method in exception com.google.inject.ContainerCreationException
Gets the error messages which resulted in this exception.
getFactory() - Method in class com.google.inject.Binding
Gets the factory which returns instances of T.
getFactory(Key<T>) - Method in interface com.google.inject.Container
Gets the factory bound to the given key.
getFactory(Class<T>) - Method in interface com.google.inject.Container
Gets the factory bound to the given type.
getFactory(TypeLiteral<T>) - Method in interface com.google.inject.Container
Gets the factory bound to the given type.
getFactory(Class<T>, Annotation) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and annotation.
getFactory(TypeLiteral<T>, Annotation) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and annotation.
getFactory(Class<T>, Class<? extends Annotation>) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and annotation.
getFactory(TypeLiteral<T>, Class<? extends Annotation>) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and annotation.
getInstance(TypeLiteral<T>) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type.
getInstance(Class<T>) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type.
getInstance(Key<T>) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given key.
getInstance(TypeLiteral<T>, Annotation) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and annotation.
getInstance(Class<T>, Annotation) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and annotation.
getInstance(TypeLiteral<T>, Class<? extends Annotation>) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and annotation.
getInstance(Class<T>, Class<? extends Annotation>) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and annotation.
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.
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.ContainerCreationException
 
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.
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.
getSourceProvider() - Method in class com.google.inject.spi.SourceConsumer
Gets the current source provider.
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.
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 class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the scope.
in(Scope) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the scope.
init(FilterConfig) - Method in class com.google.inject.servlet.GuiceFilter
 
Inject - Annotation Type in com.google.inject
Annotates members which should have their value[s] injected.
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 class com.google.inject.ContainerBuilder
Applies the given module to this builder.
intercept(Matcher<? super Class<?>>, Matcher<? super Method>, MethodInterceptor...) - Method in class com.google.inject.ContainerBuilder
Applies the given method interceptor to the methods matched by the class and method matchers.

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(Key<T>) - Method in class com.google.inject.ContainerBuilder
Links the given key to another key effectively creating an alias for a binding.

M

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 configurations, typically interface bindings, to a ContainerBuilder which will later 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

ofType(Class<T>) - Method in class com.google.inject.Key
Returns a new key of the specified type with the same annotation as this key.
ofType(Type) - Method in class com.google.inject.Key
Returns a new key of the specified type with the same annotation as this key.
ofType(TypeLiteral<T>) - Method in class com.google.inject.Key
Returns a new key of the specified type with the same annotation as this key.
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.

P

preload() - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Instructs the builder to eagerly load this binding when it creates the container.

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 class com.google.inject.ContainerBuilder
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(Class<? extends Annotation>, Scope) - Method in class com.google.inject.AbstractModule
 
scope(Class<? extends Annotation>, Scope) - Method in class com.google.inject.ContainerBuilder
Adds a new scope.
Scope - Interface in com.google.inject
A scope which bound objects can reside in.
scope(Key<T>, Factory<T>) - Method in interface com.google.inject.Scope
Scopes a factory.
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.
setSourceProvider(SourceProvider) - Method in class com.google.inject.spi.SourceConsumer
Sets the current source provider.
skip(Class<?>) - Method in class com.google.inject.spi.DefaultSourceProvider
Instructs the provider to skip the given class in the stack trace when determining the source.
source() - Method in class com.google.inject.spi.DefaultSourceProvider
 
source() - Method in class com.google.inject.spi.SourceConsumer
Returns the current source.
source() - Method in interface com.google.inject.spi.SourceProvider
Creates an object pointing to the current location within the configuration.
SourceConsumer - Class in com.google.inject.spi
Support for classes which use source objects.
SourceConsumer() - Constructor for class com.google.inject.spi.SourceConsumer
 
SourceProvider - Interface in com.google.inject.spi
Provides source objects to the ContainerBuilder.
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<I>) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to instances of the given implementation class.
to(TypeLiteral<I>) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to instances of the given implementation type.
to(ContextualFactory<? extends T>) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to instances from the given factory.
to(Factory<? extends T>) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to instances from the given factory.
to(T) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to the given instance.
to(String) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(int) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(long) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(boolean) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(double) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(float) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(short) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(char) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(Class<?>) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(E) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
Binds constant to the given value.
to(Key<? extends T>) - Method in class com.google.inject.ContainerBuilder.LinkedBindingBuilder
Links to another binding with the given key.
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

withSourceProvider(SourceProvider, Runnable) - Method in class com.google.inject.spi.SourceConsumer
Sets the source provider, runs the given command, and restores the previous source provider.

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