Package com.google.inject.spi
Interface ElementVisitor<V>
-
- Type Parameters:
V- any type to be returned by the visit method. UseVoidwithreturn nullif no return type is needed.
- All Known Implementing Classes:
DefaultElementVisitor
public interface ElementVisitor<V>Visit elements.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract 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(DisableCircularProxiesOption option)Visit a disable circular proxies command.Vvisit(InjectionRequest<?> request)Visit a request to inject the instance fields and methods of an instance.Vvisit(InterceptorBinding binding)Visit a registration of interceptors for matching methods of matching classes.<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 occured.Vvisit(ModuleAnnotatedMethodScannerBinding binding)Vvisit(PrivateElements elements)Visit a collection of configuration elements for a private binder.<T> Vvisit(ProviderLookup<T> lookup)Visit a lookup of the provider for a type.Vvisit(ProvisionListenerBinding binding)Visit a provision listener binding.Vvisit(RequireAtInjectOnConstructorsOption option)Visit a require explicit @Injectcommand.Vvisit(RequireExactBindingAnnotationsOption option)Visit a require exact binding annotations command.Vvisit(RequireExplicitBindingsOption option)Visit a require explicit bindings command.Vvisit(ScopeBinding binding)Visit a registration of a scope annotation with the scope that implements it.Vvisit(StaticInjectionRequest request)Visit a request to inject the static fields and methods of type.Vvisit(TypeConverterBinding binding)Visit a registration of type converters for matching target types.Vvisit(TypeListenerBinding binding)Visit an injectable type listener binding.
-
-
-
Method Detail
-
visit
<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.
-
visit
V visit(InterceptorBinding binding)
Visit a registration of interceptors for matching methods of matching classes.
-
visit
V visit(ScopeBinding binding)
Visit a registration of a scope annotation with the scope that implements it.
-
visit
V visit(TypeConverterBinding binding)
Visit a registration of type converters for matching target types.
-
visit
V visit(InjectionRequest<?> request)
Visit a request to inject the instance fields and methods of an instance.
-
visit
V visit(StaticInjectionRequest request)
Visit a request to inject the static fields and methods of type.
-
visit
<T> V visit(ProviderLookup<T> lookup)
Visit a lookup of the provider for a type.
-
visit
<T> V visit(MembersInjectorLookup<T> lookup)
Visit a lookup of the members injector.
-
visit
V visit(PrivateElements elements)
Visit a collection of configuration elements for a private binder.
-
visit
V visit(TypeListenerBinding binding)
Visit an injectable type listener binding.
-
visit
V visit(ProvisionListenerBinding binding)
Visit a provision listener binding.- Since:
- 4.0
-
visit
V visit(RequireExplicitBindingsOption option)
Visit a require explicit bindings command.- Since:
- 3.0
-
visit
V visit(DisableCircularProxiesOption option)
Visit a disable circular proxies command.- Since:
- 3.0
-
visit
V visit(RequireAtInjectOnConstructorsOption option)
Visit a require explicit @Injectcommand.- Since:
- 4.0
-
visit
V visit(RequireExactBindingAnnotationsOption option)
Visit a require exact binding annotations command.- Since:
- 4.0
-
visit
V visit(ModuleAnnotatedMethodScannerBinding binding)
Visits aBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)command.- Since:
- 4.0
-
-