Package | Description |
---|---|
org.elasticsearch.common.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
org.elasticsearch.common.inject.assistedinject |
Extension for combining factory interfaces with injection; this extension requires
guice-jndi-2.0.jar . |
org.elasticsearch.common.inject.binder |
Interfaces which make up
Binder 's
expression language. |
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.spi |
Guice service provider interface
|
org.elasticsearch.common.inject.util |
Helper methods for working with Guice.
|
org.elasticsearch.index.analysis |
Modifier and Type | Method and Description |
---|---|
Provider<T> |
Binding.getProvider()
Returns the scoped provider guice uses to fulfill requests for this
binding.
|
protected <T> Provider<T> |
AbstractModule.getProvider(Class<T> type) |
<T> Provider<T> |
Binder.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.
|
protected <T> Provider<T> |
PrivateModule.getProvider(Class<T> type) |
<T> Provider<T> |
Injector.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given type.
|
protected <T> Provider<T> |
AbstractModule.getProvider(Key<T> key) |
<T> Provider<T> |
Binder.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
protected <T> Provider<T> |
PrivateModule.getProvider(Key<T> key) |
<T> Provider<T> |
Injector.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Method and Description |
---|---|
static <T> Set<Provider<T>> |
Injectors.getProvidersOf(Injector injector,
Class<T> baseClass)
Returns a collection of all providers of the given base type
|
static <T> Set<Provider<T>> |
Injectors.getProvidersOf(Injector injector,
Matcher<Class> matcher)
Returns a collection of all of the providers matching the given matcher
|
Modifier and Type | Method and Description |
---|---|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Class and Description |
---|---|
class |
FactoryProvider<F>
Provides a factory that combines the caller's arguments with injector-supplied values to
construct objects.
|
class |
FactoryProvider2<F>
The newer implementation of factory provider.
|
Modifier and Type | Method and Description |
---|---|
static <F> Provider<F> |
FactoryProvider.newFactory(Class<F> factoryType,
Class<?> implementationType) |
static <F> Provider<F> |
FactoryProvider.newFactory(TypeLiteral<F> factoryType,
TypeLiteral<?> implementationType) |
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Provider<? extends T> provider)
See the EDSL examples at
Binder . |
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Class<? extends Provider<? extends T>> providerType)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
See the EDSL examples at
Binder . |
Modifier and Type | Class and Description |
---|---|
class |
ProviderMethod<T>
A provider that invokes a method and returns its result.
|
Modifier and Type | Method and Description |
---|---|
Provider<T> |
BindingImpl.getProvider() |
Provider<T> |
InstanceBindingImpl.getProvider() |
Provider<? extends T> |
ProviderInstanceBindingImpl.getProviderInstance() |
Modifier and Type | Method and Description |
---|---|
Key<? extends Provider<? extends T>> |
LinkedProviderBindingImpl.getProviderKey() |
Modifier and Type | Method and Description |
---|---|
BindingBuilder<T> |
BindingBuilder.toProvider(Provider<? extends T> provider) |
Modifier and Type | Method and Description |
---|---|
Errors |
Errors.subtypeNotProvided(Class<? extends Provider<?>> providerType,
Class<?> type) |
BindingBuilder<T> |
BindingBuilder.toProvider(Class<? extends Provider<? extends T>> providerType) |
BindingBuilder<T> |
BindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey) |
Constructor and Description |
---|
ProviderInstanceBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Provider<? extends T> providerInstance,
Set<InjectionPoint> injectionPoints) |
ProviderInstanceBindingImpl(Object source,
Key<T> key,
Scoping scoping,
Set<InjectionPoint> injectionPoints,
Provider<? extends T> providerInstance) |
Constructor and Description |
---|
LinkedProviderBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Key<? extends Provider<? extends T>> providerKey) |
Modifier and Type | Class and Description |
---|---|
static class |
MapBinder.RealMapBinder.MapBinderProviderWithDependencies<K,V> |
static class |
Multibinder.RealMultibinder<T>
The actual multibinder plays several roles:
|
Modifier and Type | Method and Description |
---|---|
Map<K,Provider<V>> |
MapBinder.RealMapBinder.MapBinderProviderWithDependencies.get() |
Modifier and Type | Interface and Description |
---|---|
interface |
ProviderBinding<T extends Provider<?>>
A binding to a
Provider that delegates to the binding for the provided type. |
Modifier and Type | Interface and Description |
---|---|
interface |
ProviderWithDependencies<T>
A provider with dependencies on other injected types.
|
Modifier and Type | Class and Description |
---|---|
static class |
ProviderLookup.ProviderImpl<T> |
Modifier and Type | Method and Description |
---|---|
Provider<T> |
ProviderLookup.getDelegate()
Returns the delegate provider, or
null if it has not yet been initialized. |
Provider<T> |
ProviderLookup.getProvider()
Returns the looked up provider.
|
<T> Provider<T> |
TypeEncounter.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.
|
<T> Provider<T> |
TypeEncounter.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
Provider<? extends T> |
ProviderInstanceBinding.getProviderInstance()
Returns the user-supplied, unscoped provider.
|
Modifier and Type | Method and Description |
---|---|
Key<? extends Provider<? extends T>> |
ProviderKeyBinding.getProviderKey()
Returns the key used to resolve the provider's binding.
|
Modifier and Type | Method and Description |
---|---|
void |
ProviderLookup.initializeDelegate(Provider<T> delegate)
Sets the actual provider.
|
Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
Providers.of(T instance)
Returns a provider which always provides
instance . |
Modifier and Type | Interface and Description |
---|---|
interface |
AnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer> |
Copyright © 2009–2016. All rights reserved.