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

A

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
 
AbstractQuery<T> - Class in com.google.inject.query
Implements and() and or().
AbstractQuery() - Constructor for class com.google.inject.query.AbstractQuery
 
and(Query<? super T>) - Method in class com.google.inject.query.AbstractQuery
 
and(Query<? super T>) - Method in interface com.google.inject.query.Query
Returns a query which returns true if both this and the given query return true.
annotatedWith(Class<? extends Annotation>) - Static method in class com.google.inject.query.Queries
Returns a query which matches elements (methods, classes, etc.) with a given annotation.
any() - Static method in class com.google.inject.query.Queries
Returns a query 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(String) - 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.
bind(String) - Method in class com.google.inject.ContainerBuilder
Binds a constant to the given name.
Binding<T> - Class in com.google.inject
A binding from a Key (type and name) to an implementation.
bindProperties(Map<String, String>) - Method in class com.google.inject.AbstractModule
 
bindProperties(Properties) - Method in class com.google.inject.AbstractModule
 
bindProperties(Map<String, String>) - Method in class com.google.inject.ContainerBuilder
Binds a string constant for each property.
bindProperties(Properties) - Method in class com.google.inject.ContainerBuilder
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
Guice (sounds like "juice")
com.google.inject.query - package com.google.inject.query
A query API.
com.google.inject.servlet - package com.google.inject.servlet
 
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
Configures the given builder.
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.
CONTAINER_NAME - Static variable in class com.google.inject.Scopes
Name of container scope.
ContainerBuilder - Class in com.google.inject
Builds a dependency injection Container.
ContainerBuilder() - Constructor for class com.google.inject.ContainerBuilder
Constructs a new builder.
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(boolean) - Method in class com.google.inject.ContainerBuilder
Creates a Container instance.

D

DEFAULT - Static variable in class com.google.inject.Scopes
The default scope, one instance per injection.
DEFAULT_NAME - Static variable in class com.google.inject.Key
Default binding name.
DEFAULT_NAME - Static variable in class com.google.inject.Scopes
Name of the default scope.
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 a Class.
get(Class<T>, String) - Static method in class com.google.inject.Key
Gets a key for a Class and a name.
get(Type) - Static method in class com.google.inject.Key
Gets a key for a type.
get(Type, String) - Static method in class com.google.inject.Key
Gets a key for a type and a name.
get(TypeLiteral<T>) - Static method in class com.google.inject.Key
Gets a key for a type.
get(TypeLiteral<T>, String) - Static method in class com.google.inject.Key
Gets key for a type and a name.
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.
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.
getCreator(Class<T>) - Method in interface com.google.inject.Container
Gets a factory which injects the given class's constructor and creates new instances of T.
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>, String) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and name.
getFactory(TypeLiteral<T>, String) - Method in interface com.google.inject.Container
Gets the factory bound to the given type and name.
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>, String) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and name.
getInstance(Class<T>, String) - Method in interface com.google.inject.Container
Gets an instance from the factory bound to the given type and name.
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.
getName() - Method in class com.google.inject.Key
Gets the binding name.
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.
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

hasDefaultName() - Method in class com.google.inject.Key
Returns true if this key has the default name.
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.query.Queries
Returns a query which matches only the given object.
in(String) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the scope.
in(Scope) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the scope.
inContainerScope() - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies container scope (i.e. one instance per container).
init(FilterConfig) - Method in class com.google.inject.servlet.GuiceFilter
 
Inject - Annotation Type in com.google.inject
Annotates members and parameters 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.query.Queries
Returns a query 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(Query<? super Class<?>>, Query<? super Method>, MethodInterceptor...) - Method in class com.google.inject.ContainerBuilder
Applies the given method interceptor to the methods matched by the class and method queries.

K

Key<T> - Class in com.google.inject
Binding key consisting of a type and a name.
Key(String) - Constructor for class com.google.inject.Key
Constructs a new key.
Key() - Constructor for class com.google.inject.Key
Convenience method.

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

matches(T) - Method in interface com.google.inject.query.Query
Returns true if this query 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
Implemented by classes which configure a container.

N

named(String) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Sets the name of this binding.
not(Query<? super T>) - Static method in class com.google.inject.query.Queries
Inverts the given query.

O

only(Object) - Static method in class com.google.inject.query.Queries
Returns a query which matches objects equal to the given object.
or(Query<? super T>) - Method in class com.google.inject.query.AbstractQuery
 
or(Query<? super T>) - Method in interface com.google.inject.query.Query
Returns a query which returns true if either this or the given query 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.

Q

Queries - Class in com.google.inject.query
Query implementations.
Query<T> - Interface in com.google.inject.query
Returns true or false for a given input.

R

REQUEST - Static variable in class com.google.inject.servlet.ServletScopes
HTTP servlet request scope.
REQUEST_NAME - Static variable in class com.google.inject.servlet.ServletScopes
Name of HTTP servlet request scope.
REQUEST_PARAMETERS - Static variable in class com.google.inject.servlet.ServletModule
Name of the request parameters binding.
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(Query<? super Class<?>>) - Static method in class com.google.inject.query.Queries
Returns a query which matches methods with matching return types.

S

scope(String, Scope) - Method in class com.google.inject.AbstractModule
 
scope(String, 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.
Scoped - Annotation Type in com.google.inject
Annotates an implementation class with the name of its scope.
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.
SESSION_NAME - Static variable in class com.google.inject.servlet.ServletScopes
Name of 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.
subclassesOf(Class<?>) - Static method in class com.google.inject.query.Queries
Returns a query 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.

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 Q R S T W