Package com.google.inject.spi
Class DefaultElementVisitor<V>
- java.lang.Object
-
- com.google.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>
public abstract class DefaultElementVisitor<V> extends Object implements ElementVisitor<V>
No-op visitor for subclassing. All interface methods simply delegate tovisitOther(Element)
, returning its result.- Since:
- 2.0
- Author:
- sberlin@gmail.com (Sam Berlin)
-
-
Constructor Summary
Constructors Constructor Description DefaultElementVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> V
visit(Binding<T> binding)
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.V
visit(DisableCircularProxiesOption option)
Visit a disable circular proxies command.V
visit(InjectionRequest<?> injectionRequest)
Visit a request to inject the instance fields and methods of an instance.V
visit(InterceptorBinding interceptorBinding)
Visit a registration of interceptors for matching methods of matching classes.<T> V
visit(MembersInjectorLookup<T> lookup)
Visit a lookup of the members injector.V
visit(Message message)
Visit an error message and the context in which it occured.V
visit(ModuleAnnotatedMethodScannerBinding binding)
V
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.V
visit(ProvisionListenerBinding binding)
Visit a provision listener binding.V
visit(RequireAtInjectOnConstructorsOption option)
Visit a require explicit @Inject
command.V
visit(RequireExactBindingAnnotationsOption option)
Visit a require exact binding annotations command.V
visit(RequireExplicitBindingsOption option)
Visit a require explicit bindings command.V
visit(ScopeBinding scopeBinding)
Visit a registration of a scope annotation with the scope that implements it.V
visit(StaticInjectionRequest staticInjectionRequest)
Visit a request to inject the static fields and methods of type.V
visit(TypeConverterBinding typeConverterBinding)
Visit a registration of type converters for matching target types.V
visit(TypeListenerBinding binding)
Visit an injectable type listener binding.protected V
visitOther(Element element)
Default visit implementation.
-
-
-
Method Detail
-
visit
public V visit(Message message)
Description copied from interface:ElementVisitor
Visit an error message and the context in which it occured.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public <T> V visit(Binding<T> binding)
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
public V visit(InterceptorBinding interceptorBinding)
Description copied from interface:ElementVisitor
Visit a registration of interceptors for matching methods of matching classes.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(ScopeBinding scopeBinding)
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
public V visit(TypeConverterBinding typeConverterBinding)
Description copied from interface:ElementVisitor
Visit a registration of type converters for matching target types.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public <T> V visit(ProviderLookup<T> providerLookup)
Description copied from interface:ElementVisitor
Visit a lookup of the provider for a type.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(InjectionRequest<?> injectionRequest)
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
public V visit(StaticInjectionRequest staticInjectionRequest)
Description copied from interface:ElementVisitor
Visit a request to inject the static fields and methods of type.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(PrivateElements privateElements)
Description copied from interface:ElementVisitor
Visit a collection of configuration elements for a private binder.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public <T> V visit(MembersInjectorLookup<T> lookup)
Description copied from interface:ElementVisitor
Visit a lookup of the members injector.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(TypeListenerBinding binding)
Description copied from interface:ElementVisitor
Visit an injectable type listener binding.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(ProvisionListenerBinding binding)
Description copied from interface:ElementVisitor
Visit a provision listener binding.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(DisableCircularProxiesOption option)
Description copied from interface:ElementVisitor
Visit a disable circular proxies command.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(RequireExplicitBindingsOption option)
Description copied from interface:ElementVisitor
Visit a require explicit bindings command.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(RequireAtInjectOnConstructorsOption option)
Description copied from interface:ElementVisitor
Visit a require explicit @Inject
command.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(RequireExactBindingAnnotationsOption option)
Description copied from interface:ElementVisitor
Visit a require exact binding annotations command.- Specified by:
visit
in interfaceElementVisitor<V>
-
visit
public V visit(ModuleAnnotatedMethodScannerBinding binding)
Description copied from interface:ElementVisitor
Visits aBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
command.- Specified by:
visit
in interfaceElementVisitor<V>
-
-