B C D E F G H I K L N R S T V

B

bind(Key<T>) - Method in class com.google.inject.ContainerBuilder
Binds the given key.
bind(TypeToken<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.
bindProperties(Map<String, String>) - Method in class com.google.inject.ContainerBuilder
Binds string constants based on the given properties.
bindProperties(Properties) - Method in class com.google.inject.ContainerBuilder
Binds string constants based on the given properties.
build(ContainerBuilder) - Method in interface com.google.inject.ContainerBuilder.Command
Configures the given builder.

C

com.google.inject - package com.google.inject
Guice (pronounced "juice").
Container - Interface in com.google.inject
Injects dependencies into constructors, methods and fields annotated with Inject.
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.Command - Interface in com.google.inject
Implemented by classes which participate in building a container.
ContainerBuilder.ConstantBindingBuilder - Class in com.google.inject
Builds a constant binding.
ContainerBuilder.LinkedBindingBuilder<T> - Class in com.google.inject
Links one binding to another.
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_NAME - Static variable in class com.google.inject.Key
Default binding name.
DependencyException - Exception in com.google.inject
Thrown when a dependency is misconfigured.
DependencyException(String) - Constructor for exception com.google.inject.DependencyException
 
DependencyException(String, Throwable) - Constructor for exception com.google.inject.DependencyException
 
DependencyException(Throwable) - Constructor for exception com.google.inject.DependencyException
 

E

equals(Object) - Method in class com.google.inject.ErrorMessage
 
equals(Object) - Method in class com.google.inject.Key
 
equals(Object) - Method in class com.google.inject.TypeToken
 
ErrorMessage - Class in com.google.inject
A configuration error.
ErrorMessage(Object, String) - Constructor for class com.google.inject.ErrorMessage
 

F

Factory<T> - Interface in com.google.inject
Gets instances of T.
findInRequest(Key<T>, Callable<? extends T>) - Method in interface com.google.inject.Scope.Strategy
Finds an object for the given type and name in the request scope.
findInSession(Key<T>, Callable<? extends T>) - Method in interface com.google.inject.Scope.Strategy
Finds an object for the given type and name in the session scope.
findInWizard(Key<T>, Callable<? extends T>) - Method in interface com.google.inject.Scope.Strategy
Finds an object for the given type and name in the wizard scope.
from(Object) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
 
from(Object) - Method in class com.google.inject.ContainerBuilder.ConstantBindingBuilder
 
from(Object) - Method in class com.google.inject.ContainerBuilder.LinkedBindingBuilder
 

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(Type) - Static method in class com.google.inject.Key
Gets a key for a type.
get(TypeToken<T>) - Static method in class com.google.inject.Key
Gets a key for a type token.
get(Type) - Static method in class com.google.inject.TypeToken
Gets type token for the given Type instance.
get(Class<T>) - Static method in class com.google.inject.TypeToken
Gets type token for the given Class instance.
getContainer() - Method in interface com.google.inject.Context
Gets the Container.
getInstance(Class<T>, String) - Method in interface com.google.inject.Container
Gets an instance of the given dependency which was declared in ContainerBuilder.
getInstance(Class<T>) - Method in interface com.google.inject.Container
Convenience method. Equivalent to get(type, DEFAULT_NAME).
getMember() - Method in interface com.google.inject.Context
Gets the field, method or constructor which is being injected.
getMessage() - Method in class com.google.inject.ErrorMessage
Gets the error message text.
getName() - Method in interface com.google.inject.Context
Gets the name of the injection specified by @Inject#name().
getName() - Method in class com.google.inject.Key
Gets the binding name.
getScopeStrategy() - Method in interface com.google.inject.Context
Gets the current scope strategy.
getSource() - Method in class com.google.inject.ErrorMessage
Gets the source of the configuration which resulted in this error message.
getType() - Method in interface com.google.inject.Context
Gets the type of the field or parameter which is being injected.
getType() - Method in class com.google.inject.TypeToken
Gets underlying Type instance.
getTypeToken() - Method in class com.google.inject.Key
Gets token representing the type to be injected.

H

hasBindingFor(Key<?>) - Method in interface com.google.inject.Container
Checks whether the container has a binding for given key.
hasDefaultName() - Method in class com.google.inject.Key
Returns true if this key has the default name.
hashCode() - Method in class com.google.inject.ErrorMessage
 
hashCode() - Method in class com.google.inject.Key
 
hashCode() - Method in class com.google.inject.TypeToken
 

I

in(Scope) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Specifies the scope.
inject(Object) - Method in interface com.google.inject.Container
Injects dependencies into the fields and methods of an existing object.
inject(Class<T>) - Method in interface com.google.inject.Container
Creates and injects a new instance of type implementation.
Inject - Annotation Type in com.google.inject
Annotates members and parameters which should have their value[s] injected.
injectStatics(Class<?>...) - Method in class com.google.inject.ContainerBuilder
Upon creation, the Container will inject static fields and methods in the given classes.

K

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

N

named(String) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Sets the name of this binding.
named(String) - Method in class com.google.inject.Key
Returns a new key with the same type as this key and the given name,

R

removeScopeStrategy() - Method in interface com.google.inject.Container
Removes the scope strategy for the current thread.

S

Scope - Enum in com.google.inject
Scope of an injected objects.
Scope.Strategy - Interface in com.google.inject
Pluggable scoping strategy.
Scoped - Annotation Type in com.google.inject
Annotates a scoped implementation class.
setScopeStrategy(Scope.Strategy) - Method in interface com.google.inject.Container
Sets the scope strategy for the current thread.
source() - Method in class com.google.inject.ContainerBuilder
Creates a source object to be associated with a binding.

T

to(Class<I>) - Method in class com.google.inject.ContainerBuilder.BindingBuilder
Binds to instances of the given implementation class.
to(TypeToken<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.ErrorMessage
 
toString() - Method in class com.google.inject.Key
 
toString() - Method in class com.google.inject.TypeToken
 
TypeToken<T> - Class in com.google.inject
Represents a generic type T.
TypeToken() - Constructor for class com.google.inject.TypeToken
Constructs a new type token.

V

valueOf(String) - Static method in enum com.google.inject.Scope
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.google.inject.Scope
Returns an array containing the constants of this enum type, in the order they're declared.

B C D E F G H I K L N R S T V