| 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.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.index | |
| org.elasticsearch.indices | |
| org.elasticsearch.node |
Allow to build a
Node using NodeBuilder which is a
node within the cluster. |
| org.elasticsearch.repositories |
| Modifier and Type | Method and Description |
|---|---|
Injector |
ModulesBuilder.createChildInjector(Injector injector) |
Injector |
Injector.createChildInjector(Iterable<? extends Module> modules)
Returns a new injector that inherits all state from this injector.
|
Injector |
Injector.createChildInjector(Module... modules)
Returns a new injector that inherits all state from this injector.
|
Injector |
ModulesBuilder.createInjector() |
static Injector |
Guice.createInjector(Iterable<? extends Module> modules)
Creates an injector for the given set of modules.
|
static Injector |
Guice.createInjector(Module... modules)
Creates an injector for the given set of modules.
|
static Injector |
Guice.createInjector(Stage stage,
Iterable<? extends Module> modules)
Creates an injector for the given set of modules, in a given development
stage.
|
static Injector |
Guice.createInjector(Stage stage,
Module... modules)
Creates an injector for the given set of modules, in a given development
stage.
|
Injector |
Injector.getParent()
Returns this injector's parent, or
null if this is a top-level injector. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Injectors.cleanCaches(Injector injector) |
Injector |
ModulesBuilder.createChildInjector(Injector injector) |
static Binding<?> |
Injectors.getBinding(Injector injector,
Key<?> key)
Returns the binding for the given key or null if there is no such binding
|
static Set<Binding<?>> |
Injectors.getBindingsOf(Injector injector,
Class<?> baseClass)
Returns a collection of all bindings of the given base type
|
static Set<Binding<?>> |
Injectors.getBindingsOf(Injector injector,
Matcher<Class> matcher)
Returns a collection of all of the bindings matching the given matcher
|
static <T> T |
Injectors.getInstance(Injector injector,
Class<T> type,
String name)
Returns an instance of the given type with the
Named
annotation value. |
static <T> Set<T> |
Injectors.getInstancesOf(Injector injector,
Class<T> baseClass)
Returns a collection of all instances of the given base type
|
static <T> Set<T> |
Injectors.getInstancesOf(Injector injector,
Matcher<Class> matcher)
Returns a collection of all instances matching the given matcher
|
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
|
static boolean |
Injectors.hasBinding(Injector injector,
Class<?> baseClass)
Returns true if a binding exists for the given base class
|
static boolean |
Injectors.hasBinding(Injector injector,
Key<?> key)
Returns true if a binding exists for the given key
|
static boolean |
Injectors.hasBinding(Injector injector,
Matcher<Class> matcher)
Returns true if a binding exists for the given matcher
|
| Modifier and Type | Method and Description |
|---|---|
void |
FactoryProvider2.initialize(Injector injector)
At injector-creation time, we initialize the invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
Injector |
PrivateElementsImpl.getInjector() |
Injector |
BindingImpl.getInjector() |
| Modifier and Type | Method and Description |
|---|---|
void |
PrivateElementsImpl.initInjector(Injector injector) |
| Constructor and Description |
|---|
BindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping) |
ExposedBindingImpl(Injector injector,
Object source,
Key<T> key,
InternalFactory<T> factory,
PrivateElements privateElements) |
InstanceBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Set<InjectionPoint> injectionPoints,
T instance) |
LinkedBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Key<? extends T> targetKey) |
LinkedProviderBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Key<? extends Provider<? extends T>> providerKey) |
ProviderInstanceBindingImpl(Injector injector,
Key<T> key,
Object source,
InternalFactory<? extends T> internalFactory,
Scoping scoping,
Provider<? extends T> providerInstance,
Set<InjectionPoint> injectionPoints) |
UntargettedBindingImpl(Injector injector,
Key<T> key,
Object source) |
| Modifier and Type | Method and Description |
|---|---|
void |
Multibinder.RealMultibinder.initialize(Injector injector)
Invoked by Guice at Injector-creation time to prepare providers for each
element in this set.
|
| Modifier and Type | Method and Description |
|---|---|
Injector |
PrivateElements.getInjector()
Returns the child injector that hosts these private elements, or null if the elements haven't
been used to create an injector.
|
| Modifier and Type | Method and Description |
|---|---|
Injector |
IndexService.injector() |
Injector |
IndexService.shardInjectorSafe(int shardId)
Return the shard injector for the provided id, or throw an exception if there is no such shard.
|
| Constructor and Description |
|---|
IndexService(Injector injector,
Index index,
NodeEnvironment nodeEnv,
AnalysisService analysisService,
MapperService mapperService,
IndexQueryParserService queryParserService,
SimilarityService similarityService,
IndexAliasesService aliasesService,
IndexCache indexCache,
IndexSettingsService settingsService,
IndexFieldDataService indexFieldData,
BitsetFilterCache bitSetFilterCache,
IndicesService indicesServices) |
| Constructor and Description |
|---|
IndicesService(Settings settings,
IndicesLifecycle indicesLifecycle,
IndicesAnalysisService indicesAnalysisService,
Injector injector,
NodeEnvironment nodeEnv) |
| Modifier and Type | Method and Description |
|---|---|
Injector |
Node.injector() |
| Constructor and Description |
|---|
RepositoriesService(Settings settings,
ClusterService clusterService,
TransportService transportService,
RepositoryTypesRegistry typesRegistry,
Injector injector) |
Copyright © 2009–2017. All rights reserved.