Class DefaultElementVisitor<V>
java.lang.Object
org.elasticsearch.common.inject.spi.DefaultElementVisitor<V>
- Type Parameters:
V
- any type to be returned by the visit method. UseVoid
withreturn null
if no return type is needed.
- All Implemented Interfaces:
ElementVisitor<V>
No-op visitor for subclassing. All interface methods simply delegate to
visitOther(Element)
, returning its result.- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> V
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.visit(InjectionRequest<?> injectionRequest)
Visit a request to inject the instance fields and methods of an instance.<T> V
visit(MembersInjectorLookup<T> lookup)
Visit a lookup of the members injector.Visit an error message and the context in which it occurred.visit(PrivateElements privateElements)
Visit a collection of configuration elements for a private binder.<T> V
visit(ProviderLookup<T> providerLookup)
Visit a lookup of the provider for a type.visit(ScopeBinding scopeBinding)
Visit a registration of a scope annotation with the scope that implements it.visit(StaticInjectionRequest staticInjectionRequest)
Visit a request to inject the static fields and methods of type.visit(TypeConverterBinding typeConverterBinding)
Visit a registration of type converters for matching target types.visit(TypeListenerBinding binding)
Visit an injectable type listener binding.protected V
visitOther(Element element)
Default visit implementation.
-
Constructor Details
-
DefaultElementVisitor
public DefaultElementVisitor()
-
-
Method Details
-
visitOther
Default visit implementation. Returnsnull
. -
visit
Description copied from interface:ElementVisitor
Visit an error message and the context in which it occurred.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a registration of a scope annotation with the scope that implements it.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a registration of type converters for matching target types.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a lookup of the provider for a type.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a request to inject the instance fields and methods of an instance.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a request to inject the static fields and methods of type.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a collection of configuration elements for a private binder.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit a lookup of the members injector.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
Description copied from interface:ElementVisitor
Visit an injectable type listener binding.- Specified by:
visit
in interfaceElementVisitor<V>
-