| Package | Description |
|---|---|
| org.elasticsearch.common.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
| org.elasticsearch.common.inject.internal |
Guice (sounds like like "juice")
|
| org.elasticsearch.common.inject.multibindings |
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings-2.0.jar. |
| org.elasticsearch.common.inject.name |
Support for binding to string-based names.
|
| org.elasticsearch.common.inject.spi |
Guice service provider interface
|
| org.elasticsearch.common.util | |
| org.elasticsearch.repositories |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PrivateBinder
Returns a binder whose configuration information is hidden from its environment by default.
|
| Modifier and Type | Method and Description |
|---|---|
protected Binder |
AbstractModule.binder()
Gets direct access to the underlying
Binder. |
Binder |
Binder.skipSources(Class... classesToSkip)
Returns a binder that skips
classesToSkip when identify the
calling code. |
Binder |
Binder.withSource(Object source)
Returns a binder that uses
source as the reference location for
configuration errors. |
| Modifier and Type | Method and Description |
|---|---|
void |
Module.configure(Binder binder)
Contributes bindings and other configurations for this module to
binder. |
void |
PrivateModule.configure(Binder binder) |
void |
AbstractModule.configure(Binder builder) |
| Modifier and Type | Field and Description |
|---|---|
protected Binder |
AbstractBindingBuilder.binder |
| Modifier and Type | Method and Description |
|---|---|
void |
InstanceBindingImpl.applyTo(Binder binder) |
void |
ExposedBindingImpl.applyTo(Binder binder) |
void |
PrivateElementsImpl.applyTo(Binder binder) |
void |
ProviderInstanceBindingImpl.applyTo(Binder binder) |
void |
LinkedProviderBindingImpl.applyTo(Binder binder) |
void |
LinkedBindingImpl.applyTo(Binder binder) |
void |
UntargettedBindingImpl.applyTo(Binder binder) |
void |
ProviderMethod.configure(Binder binder) |
void |
ProviderMethodsModule.configure(Binder binder) |
List<ProviderMethod<?>> |
ProviderMethodsModule.getProviderMethods(Binder binder) |
| Constructor and Description |
|---|
AbstractBindingBuilder(Binder binder,
List<Element> elements,
Object source,
Key<T> key) |
BindingBuilder(Binder binder,
List<Element> elements,
Object source,
Key<T> key) |
ConstantBindingBuilderImpl(Binder binder,
List<Element> elements,
Object source) |
ExposureBuilder(Binder binder,
Object source,
Key<T> key) |
| Modifier and Type | Method and Description |
|---|---|
void |
Multibinder.RealMultibinder.configure(Binder binder) |
void |
MapBinder.RealMapBinder.configure(Binder binder) |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
Class<K> keyType,
Class<V> valueType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with no binding annotation. |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
Class<K> keyType,
Class<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotation. |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
Class<K> keyType,
Class<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotationType. |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with no binding annotation. |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotation. |
static <K,V> MapBinder<K,V> |
MapBinder.newMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotationType. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
Class<T> type)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with no binding annotation. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
Class<T> type,
Annotation annotation)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with annotation. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
Class<T> type,
Class<? extends Annotation> annotationType)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with annotationType. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with no binding annotation. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type,
Annotation annotation)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with annotation. |
static <T> Multibinder<T> |
Multibinder.newSetBinder(Binder binder,
TypeLiteral<T> type,
Class<? extends Annotation> annotationType)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with annotationType. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Names.bindProperties(Binder binder,
Map<String,String> properties)
Creates a constant binding to
@Named(key) for each entry in
properties. |
static void |
Names.bindProperties(Binder binder,
Properties properties)
Creates a constant binding to
@Named(key) for each property. |
| Modifier and Type | Method and Description |
|---|---|
void |
ProviderLookup.applyTo(Binder binder) |
void |
TypeListenerBinding.applyTo(Binder binder) |
void |
InjectionRequest.applyTo(Binder binder) |
void |
Message.applyTo(Binder binder) |
void |
StaticInjectionRequest.applyTo(Binder binder) |
void |
Element.applyTo(Binder binder)
Writes this module element to the given binder (optional operation).
|
void |
TypeConverterBinding.applyTo(Binder binder) |
void |
MembersInjectorLookup.applyTo(Binder binder) |
void |
ScopeBinding.applyTo(Binder binder) |
void |
ExposedBinding.applyTo(Binder binder)
Unsupported.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ExtensionPoint.bind(Binder binder)
Binds the extension as well as the singletons to the given guice binder.
|
protected abstract void |
ExtensionPoint.bindExtensions(Binder binder)
Subclasses can bind their type, map or set extensions here.
|
protected void |
ExtensionPoint.ClassMap.bindExtensions(Binder binder) |
protected void |
ExtensionPoint.ClassSet.bindExtensions(Binder binder) |
protected void |
ExtensionPoint.InstanceMap.bindExtensions(Binder binder) |
String |
ExtensionPoint.SelectedType.bindType(Binder binder,
Settings settings,
String settingsKey,
String defaultValue)
Binds the extension class to the class that is registered for the give configured for the settings key in
the settings object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RepositoryTypesRegistry.bindType(Binder binder,
String type)
Looks up the given type and binds the implementation into the given binder.
|
Copyright © 2009–2017. All rights reserved.