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. UseVoidwithreturn nullif no return type is needed.
- All Implemented Interfaces:
ElementVisitor<V>
public abstract class DefaultElementVisitor<V> extends java.lang.Object implements ElementVisitor<V>
No-op visitor for subclassing. All interface methods simply delegate tovisitOther(Element), returning its result.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description DefaultElementVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Vvisit(Binding<T> binding)Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.Vvisit(InjectionRequest injectionRequest)Visit a request to inject the instance fields and methods of an instance.<T> Vvisit(MembersInjectorLookup<T> lookup)Visit a lookup of the members injector.Vvisit(Message message)Visit an error message and the context in which it occurred.Vvisit(PrivateElements privateElements)Visit a collection of configuration elements for a private binder.<T> Vvisit(ProviderLookup<T> providerLookup)Visit a lookup of the provider for a type.Vvisit(ScopeBinding scopeBinding)Visit a registration of a scope annotation with the scope that implements it.Vvisit(StaticInjectionRequest staticInjectionRequest)Visit a request to inject the static fields and methods of type.Vvisit(TypeConverterBinding typeConverterBinding)Visit a registration of type converters for matching target types.Vvisit(TypeListenerBinding binding)Visit an injectable type listener binding.protected VvisitOther(Element element)Default visit implementation.
-
-
-
Method Detail
-
visit
public V visit(Message message)
Description copied from interface:ElementVisitorVisit an error message and the context in which it occurred.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public <T> V visit(Binding<T> binding)
Description copied from interface:ElementVisitorVisit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(ScopeBinding scopeBinding)
Description copied from interface:ElementVisitorVisit a registration of a scope annotation with the scope that implements it.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(TypeConverterBinding typeConverterBinding)
Description copied from interface:ElementVisitorVisit a registration of type converters for matching target types.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public <T> V visit(ProviderLookup<T> providerLookup)
Description copied from interface:ElementVisitorVisit a lookup of the provider for a type.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(InjectionRequest injectionRequest)
Description copied from interface:ElementVisitorVisit a request to inject the instance fields and methods of an instance.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(StaticInjectionRequest staticInjectionRequest)
Description copied from interface:ElementVisitorVisit a request to inject the static fields and methods of type.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(PrivateElements privateElements)
Description copied from interface:ElementVisitorVisit a collection of configuration elements for a private binder.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public <T> V visit(MembersInjectorLookup<T> lookup)
Description copied from interface:ElementVisitorVisit a lookup of the members injector.- Specified by:
visitin interfaceElementVisitor<V>
-
visit
public V visit(TypeListenerBinding binding)
Description copied from interface:ElementVisitorVisit an injectable type listener binding.- Specified by:
visitin interfaceElementVisitor<V>
-
-