com.google.inject.spi
Interface ElementVisitor<V>

Type Parameters:
V - any type to be returned by the visit method. Use Void with return null if no return type is needed.
All Known Implementing Classes:
DefaultElementVisitor

public interface ElementVisitor<V>

Visit elements.

Since:
2.0

Method Summary
<T> V
visitBinding(Binding<T> binding)
          Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
 V visitInjectionRequest(InjectionRequest injectionRequest)
          Visit a request to inject the instance fields and methods of an instance.
 V visitInterceptorBinding(InterceptorBinding interceptorBinding)
          Visit a registration of interceptors for matching methods of matching classes.
 V visitMessage(Message message)
          Visit an error message and the context in which it occured.
 V visitPrivateEnvironment(PrivateEnvironment privateEnvironment)
          Visit a collection of configuration elements for a private environment.
<T> V
visitProviderLookup(ProviderLookup<T> providerLookup)
          Visit a lookup of the provider for a type.
 V visitScopeBinding(ScopeBinding scopeBinding)
          Visit a registration of a scope annotation with the scope that implements it.
 V visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest)
          Visit a request to inject the static fields and methods of type.
 V visitTypeConverterBinding(TypeConverterBinding typeConverterBinding)
          Visit a registration of type converters for matching target types.
 

Method Detail

visitBinding

<T> V visitBinding(Binding<T> binding)
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.


visitInterceptorBinding

V visitInterceptorBinding(InterceptorBinding interceptorBinding)
Visit a registration of interceptors for matching methods of matching classes.


visitScopeBinding

V visitScopeBinding(ScopeBinding scopeBinding)
Visit a registration of a scope annotation with the scope that implements it.


visitTypeConverterBinding

V visitTypeConverterBinding(TypeConverterBinding typeConverterBinding)
Visit a registration of type converters for matching target types.


visitInjectionRequest

V visitInjectionRequest(InjectionRequest injectionRequest)
Visit a request to inject the instance fields and methods of an instance.


visitStaticInjectionRequest

V visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest)
Visit a request to inject the static fields and methods of type.


visitProviderLookup

<T> V visitProviderLookup(ProviderLookup<T> providerLookup)
Visit a lookup of the provider for a type.


visitMessage

V visitMessage(Message message)
Visit an error message and the context in which it occured.


visitPrivateEnvironment

V visitPrivateEnvironment(PrivateEnvironment privateEnvironment)
Visit a collection of configuration elements for a private environment.