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.intercept
Implements and() and or().
AbstractQuery() - Constructor for class com.google.inject.intercept.AbstractQuery
 
all() - Static method in class com.google.inject.intercept.Queries
Returns a query which matches any input.
and(Query<? super T>) - Method in class com.google.inject.intercept.AbstractQuery
 
and(Query<? super T>) - Method in interface com.google.inject.intercept.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.intercept.Queries
Returns a query which matches elements (methods, classes, etc.) with a given annotation.
apply(Module) - Method in class com.google.inject.AbstractModule
 
apply(Module) - Method in class com.google.inject.ContainerBuilder
Applies the given module to this builder.

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.

C

com.google.inject - package com.google.inject
Guice (sounds like like "juice")
com.google.inject.intercept - package com.google.inject.intercept
A simple and very efficient AOP Alliance-based interception framework for Guice.
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.
ConstructionProxy<T> - Interface in com.google.inject.spi
Proxies calls to a Constructor for a class T.
ConstructionProxyFactory - Interface in com.google.inject.spi
Creates ConstructionProxy instances.
Container - Interface in com.google.inject
Injects dependencies into constructors, methods and fields annotated with @Inject.
CONTAINER_SCOPE - Static variable in class com.google.inject.Scopes
Container scope's name.
ContainerBuilder - Class in com.google.inject
Builds a dependency injection Container.
ContainerBuilder(ConstructionProxyFactory) - Constructor for class com.google.inject.ContainerBuilder
Constructs a new builder.
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.
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.
create() - Method in class com.google.inject.intercept.ProxyFactoryBuilder
Creates a ProxyFactory.

D

DEFAULT_NAME - Static variable in class com.google.inject.Key
Default binding name.
DEFAULT_SCOPE - Static variable in class com.google.inject.Scopes
Default scope's name.
DefaultConstructionProxyFactory - Class in com.google.inject.spi
Default ConstructionProxyFactory implementation.
DefaultConstructionProxyFactory() - Constructor for class com.google.inject.spi.DefaultConstructionProxyFactory
 
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
 

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(Constructor<T>) - Method in class com.google.inject.intercept.ProxyFactory
 
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(Constructor<T>) - Method in interface com.google.inject.spi.ConstructionProxyFactory
Gets a construction proxy for the given constructor.
get(Constructor<T>) - Method in class com.google.inject.spi.DefaultConstructionProxyFactory
 
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 class com.google.inject.intercept.ProxyFactory
Gets a factory for the given type.
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.

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.intercept.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).
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.intercept.Queries
Returns a query which matches classes in the given package.
intercept(Query<? super Class<?>>, Query<? super Method>, MethodInterceptor...) - Method in class com.google.inject.intercept.ProxyFactoryBuilder
Applies the given method interceptor to the methods matched by the class and method queries.
isConstant() - Method in class com.google.inject.Binding
Is this a constant binding?

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.intercept.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.
newInstance(Object...) - Method in interface com.google.inject.spi.ConstructionProxy
Constructs an instance of T for the given arguments.
not(Query<? super T>) - Static method in class com.google.inject.intercept.Queries
Inverts the given query.

O

only(Object) - Static method in class com.google.inject.intercept.Queries
Returns a query which matches objects equal to the given object.
or(Query<? super T>) - Method in class com.google.inject.intercept.AbstractQuery
 
or(Query<? super T>) - Method in interface com.google.inject.intercept.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.
ProxyFactory - Class in com.google.inject.intercept
Proxies classes applying interceptors to methods as specified in ProxyFactoryBuilder.
ProxyFactoryBuilder - Class in com.google.inject.intercept
Creates a ProxyFactory.
ProxyFactoryBuilder() - Constructor for class com.google.inject.intercept.ProxyFactoryBuilder
 
put(String, Scope) - Method in class com.google.inject.AbstractModule
 
put(String, Scope) - Method in class com.google.inject.ContainerBuilder
Maps a Scope instance to a given scope name.

Q

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

R

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.

S

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
Scope constants.
Scopes() - Constructor for class com.google.inject.Scopes
 
setSourceProvider(SourceProvider) - Method in class com.google.inject.spi.SourceConsumer
Sets the current source provider.
skipSource(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.intercept.Queries
Returns a query which matches subclasses of 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(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