Class InternalFactory.Instance<T>
java.lang.Object
org.elasticsearch.common.inject.internal.InternalFactory.Instance<T>
- All Implemented Interfaces:
InternalFactory<T>
- Enclosing interface:
- InternalFactory<T>
ES:
An factory that returns a pre created instance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.inject.internal.InternalFactory
InternalFactory.Instance<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget(Errors errors, InternalContext context, Dependency<?> dependency)
Creates an object to be injected.toString()
-
Constructor Details
-
Instance
-
-
Method Details
-
get
public T get(Errors errors, InternalContext context, Dependency<?> dependency) throws ErrorsExceptionDescription copied from interface:InternalFactory
Creates an object to be injected.- Specified by:
get
in interfaceInternalFactory<T>
context
- of this injection- Returns:
- instance to be injected
- Throws:
ErrorsException
- if a value cannot be provided
-
toString
-