- 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
Module
s which reduces repetition and results in
a more readable configuration.
- AbstractModule() - Constructor for class com.google.inject.AbstractModule
-
- add(String, Object) - Method in class com.google.inject.util.ToStringBuilder
-
- addError(String, Object...) - Method in class com.google.inject.AbstractModule
-
- addError(Throwable) - Method in class com.google.inject.AbstractModule
-
- addError(String, Object...) - Method in interface com.google.inject.Binder
-
Records an error message which will be presented to the user at a later
time.
- addError(Throwable) - Method in interface com.google.inject.Binder
-
Records an exception, the full details of which will be logged, and the
message of which will be presented to the user at a later
time.
- 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
.
- AnnotatedBindingBuilder<T> - Interface in com.google.inject.binder
-
Specifies the annotation for a binding.
- AnnotatedConstantBindingBuilder - Interface in com.google.inject.binder
-
Specifies the annotation for a constant binding.
- annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
-
Specifies an annotation type for this binding.
- annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedBindingBuilder
-
Specifies an annotation value for this binding.
- annotatedWith(Class<? extends Annotation>) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
-
Specifies an annotation type for this binding.
- annotatedWith(Annotation) - Method in interface com.google.inject.binder.AnnotatedConstantBindingBuilder
-
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.
- annotatedWith(Annotation) - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches elements (methods, classes, etc.)
with a given annotation.
- Annotations - Class in com.google.inject.util
-
Annotation utilities.
- Annotations() - Constructor for class com.google.inject.util.Annotations
-
- any() - Static method in class com.google.inject.matcher.Matchers
-
Returns a matcher which matches any input.
- apply(F) - Method in interface com.google.inject.util.Function
-
Applies the function to an object of type F
, resulting in an object
of type T
.
- asEagerSingleton() - Method in interface com.google.inject.binder.ScopedBindingBuilder
-
Instructs the
Injector
to eagerly initialize this
singleton-scoped binding upon creation.
- assertNoNulls(Object[]) - Static method in class com.google.inject.util.Objects
-
We use this as a sanity check immediately before injecting into a method
or constructor, to make sure we aren't supplying a null.
- capitalize(String) - Static method in class com.google.inject.util.Strings
-
- clear() - Method in class com.google.inject.util.ReferenceMap
-
- com.google.inject - package com.google.inject
-
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
- com.google.inject.binder - package com.google.inject.binder
-
Interfaces which make up
Binder
's
expression language.
- com.google.inject.jndi - package com.google.inject.jndi
-
JNDI integration
- com.google.inject.matcher - package com.google.inject.matcher
-
Used for matching things.
- com.google.inject.name - package com.google.inject.name
-
Support for binding to string-based names.
- com.google.inject.spi - package com.google.inject.spi
-
Guice service provider interface
- com.google.inject.tools.jmx - package com.google.inject.tools.jmx
-
JMX integration
- com.google.inject.util - package com.google.inject.util
-
Guice (sounds like like "juice")
- 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
.
- ConstantBindingBuilder - Interface in com.google.inject.binder
-
Binds to a constant value.
- containsKey(Object) - Method in class com.google.inject.util.ReferenceMap
-
- containsValue(Object) - Method in class com.google.inject.util.ReferenceMap
-
- create(Class) - Static method in class com.google.inject.util.GuiceFastClass
-
- create(ClassLoader, Class) - Static method in class com.google.inject.util.GuiceFastClass
-
- create(K) - Method in class com.google.inject.util.ReferenceCache
-
Override to lazy load values.
- createInjector(Module...) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules.
- createInjector(Iterable<Module>) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules.
- createInjector(Stage, Module...) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules, in a given development
stage.
- createInjector(Stage, Iterable<Module>) - Static method in class com.google.inject.Guice
-
Creates an injector for the given set of modules, in a given development
stage.
- CreationException - Exception in com.google.inject
-
Thrown when errors occur while creating a
Injector
.
- CreationException(Collection<Message>) - Constructor for exception com.google.inject.CreationException
-
Constructs a new exception for the given errors.
- currentStage() - Method in interface com.google.inject.Binder
-
Gets the current stage.
- 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.Provider
-
Provides 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.
- get(Object) - Method in class com.google.inject.util.ReferenceMap
-
- 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.Injector
-
Gets a binding for the given key.
- getBindings() - Method in interface com.google.inject.Injector
-
Gets all explicit bindings.
- getClassName(String, String, Object, Predicate) - Method in class com.google.inject.util.GuiceNamingPolicy
-
- getErrorMessages() - Method in exception com.google.inject.CreationException
-
Gets the error messages which resulted in this exception.
- getFirstLine() - Method in class com.google.inject.util.LineNumbers
-
Gets the first line number.
- getInstance(Key<T>) - Method in interface com.google.inject.Injector
-
Gets an instance bound to the given key; equivalent to
getProvider(key).get()
.
- getInstance(Class<T>) - Method in interface com.google.inject.Injector
-
Gets an instance bound to the given type; equivalent to
getProvider(type).get()
.
- getKey() - Method in interface com.google.inject.Binding
-
Returns the key for this binding.
- getKey() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
-
Gets the binding key.
- getLineNumber(Member) - Method in class com.google.inject.util.LineNumbers
-
Get the line number associated with the given member.
- getMessage() - Method in exception com.google.inject.CreationException
-
- getMessage() - Method in class com.google.inject.spi.Message
-
Gets the error message text.
- getProvider() - Method in interface com.google.inject.Binding
-
Returns the provider guice uses to fulfill requests for this binding.
- getProvider(Key<T>) - Method in interface com.google.inject.Injector
-
Gets the provider bound to the given key.
- getProvider(Class<T>) - Method in interface com.google.inject.Injector
-
Gets the provider bound to the given type.
- getProvider() - Method in interface com.google.inject.tools.jmx.ManagedBindingMBean
-
Gets the provider to which this binding is bound.
- getPutStrategy() - Method in class com.google.inject.util.ReferenceMap
-
- 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 interface com.google.inject.Binding
-
Returns an arbitrary object containing information about the "place"
where this binding was configured.
- 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.
- getSource() - Method in class com.google.inject.util.LineNumbers
-
Get the source file name as read from the bytecode.
- getSourceString() - Method in class com.google.inject.spi.Message
-
Returns a string representation of the source object.
- getType() - Method in class com.google.inject.TypeLiteral
-
Gets underlying Type
instance.
- getTypeLiteral() - Method in class com.google.inject.Key
-
Gets the key type.
- Guice - Class in com.google.inject
-
The entry point to the Guice framework.
- GuiceFastClass - Class in com.google.inject.util
-
Gives Guice classes custom names.
- GuiceFastClass() - Constructor for class com.google.inject.util.GuiceFastClass
-
- GuiceNamingPolicy - Class in com.google.inject.util
-
Cglib class naming policy for Guice.
- GuiceNamingPolicy() - Constructor for class com.google.inject.util.GuiceNamingPolicy
-
- 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(Class<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to another binding with the specified type.
- to(TypeLiteral<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to another binding with the specified type.
- to(Key<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to another binding with the specified key.
- toInstance(T) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to the given instance.
- toProvider(Provider<? extends T>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to instances generated by the given Provider.
- toProvider(Class<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to instances from the provider bound to the given provider type.
- toProvider(Key<? extends Provider<? extends T>>) - Method in interface com.google.inject.binder.LinkedBindingBuilder
-
Binds to instances from the provider bound to the given key.
- toString() - Method in class com.google.inject.Key
-
- toString() - Method in interface com.google.inject.Scope
-
A short but useful description of this scope.
- toString() - Method in class com.google.inject.spi.Message
-
- toString() - Method in class com.google.inject.TypeLiteral
-
- toString() - Method in class com.google.inject.util.ToStringBuilder
-
- ToStringBuilder - Class in com.google.inject.util
-
Helps with toString()
methods.
- ToStringBuilder(String) - Constructor for class com.google.inject.util.ToStringBuilder
-
- ToStringBuilder(Class) - Constructor for class com.google.inject.util.ToStringBuilder
-
- 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.