Package org.elasticsearch.common.inject
-
Interface Summary Interface Description Binder Collects configuration information (primarily bindings) which will be used to create anInjector.Binding<T> A mapping from a key (type and optional annotation) to the strategy for getting instances of the type.Injector Builds the graphs of objects that make up your application.MembersInjector<T> Injects dependencies into the fields and methods on instances of typeT.Module A module contributes configuration information, typically interface bindings, which will be used to create anInjector.PrivateBinder Returns a binder whose configuration information is hidden from its environment by default.Provider<T> An object capable of providing instances of typeT.Scope A scope is a level of visibility that instances provided by Guice may have. -
Class Summary Class Description AbstractModule A support class forModules which reduces repetition and results in a more readable configuration.Guice The entry point to the Guice framework.Key<T> Binding key consisting of an injection type and an optional annotation.ModulesBuilder PrivateModule A module whose configuration information is hidden from its environment by default.Scopes Built-in scope implementations.TypeLiteral<T> Represents a generic typeT. -
Enum Summary Enum Description Stage The stage we're running in. -
Exception Summary Exception Description ConfigurationException Thrown when a programming error such as a misplaced annotation, illegal binding, or unsupported scope is found.CreationException Thrown when errors occur while creating aInjector.ProvisionException Indicates that there was a runtime failure while providing an instance. -
Annotation Types Summary Annotation Type Description BindingAnnotation Annotates annotations which are used for binding.Exposed Accompanies a @Providesmethod annotation in a private module to indicate that the provided binding is exposed.ImplementedBy A pointer to the default implementation of a type.Inject Annotates members of your implementation class (constructors, methods and fields) into which theInjectorshould inject values.ProvidedBy A pointer to the default provider type for a type.Provides Annotates methods of aModuleto create a provider method binding.ScopeAnnotation Annotates annotations which are used for scoping.Singleton Apply this to implementation classes when you want only one instance (perInjector) to be reused for all injections for that binding.