Package com.google.inject.spi
Interface ElementVisitor<V>
- Type Parameters:
V
- any type to be returned by the visit method. UseVoid
withreturn null
if no return type is needed.
- All Known Implementing Classes:
AbstractBindingProcessor
,AbstractProcessor
,BindingProcessor
,DefaultElementVisitor
,InjectionRequestProcessor
,InjectorOptionsProcessor
,ListenerBindingProcessor
,LookupProcessor
,MessageProcessor
,ModuleAnnotatedMethodScannerProcessor
,Modules.ModuleWriter
,PrivateElementProcessor
,ScopeBindingProcessor
,TypeConverterBindingProcessor
,UntargettedBindingProcessor
public interface ElementVisitor<V>
Visit elements.
- Since:
- 2.0
-
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
(DisableCircularProxiesOption option) Visit a disable circular proxies command.visit
(InjectionRequest<?> request) 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 occured.visit
(ModuleAnnotatedMethodScannerBinding binding) visit
(PrivateElements elements) Visit a collection of configuration elements for a private binder.<T> V
visit
(ProviderLookup<T> lookup) Visit a lookup of the provider for a type.visit
(ProvisionListenerBinding binding) Visit a provision listener binding.Visit a require explicit @Inject
command.Visit a require exact binding annotations command.visit
(RequireExplicitBindingsOption option) Visit a require explicit bindings command.visit
(ScopeBinding binding) Visit a registration of a scope annotation with the scope that implements it.visit
(StaticInjectionRequest request) Visit a request to inject the static fields and methods of type.visit
(TypeConverterBinding binding) Visit a registration of type converters for matching target types.visit
(TypeListenerBinding binding) Visit an injectable type listener binding.
-
Method Details
-
visit
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type. -
visit
Visit a registration of a scope annotation with the scope that implements it. -
visit
Visit a registration of type converters for matching target types. -
visit
Visit a request to inject the instance fields and methods of an instance. -
visit
Visit a request to inject the static fields and methods of type. -
visit
Visit a lookup of the provider for a type. -
visit
Visit a lookup of the members injector. -
visit
Visit an error message and the context in which it occured. -
visit
Visit a collection of configuration elements for a private binder. -
visit
Visit an injectable type listener binding. -
visit
Visit a provision listener binding.- Since:
- 4.0
-
visit
Visit a require explicit bindings command.- Since:
- 3.0
-
visit
Visit a disable circular proxies command.- Since:
- 3.0
-
visit
Visit a require explicit @Inject
command.- Since:
- 4.0
-
visit
Visit a require exact binding annotations command.- Since:
- 4.0
-
visit
Visits aBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
command.- Since:
- 4.0
-