|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.spi.DefaultElementVisitor<V>
V
- any type to be returned by the visit method. Use Void
with
return null
if no return type is needed.public abstract class DefaultElementVisitor<V>
No-op visitor for subclassing. All interface methods simply delegate to
visitElement(Element)
, returning its result.
Constructor Summary | |
---|---|
DefaultElementVisitor()
|
Method Summary | ||
---|---|---|
|
visitBinding(Binding<T> binding)
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type. |
|
protected V |
visitElement(Element element)
Visit element and return a result. |
|
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 |
visitPrivateElements(PrivateElements privateElements)
Visit a collection of configuration elements for a private environment. |
|
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultElementVisitor()
Method Detail |
---|
protected V visitElement(Element element)
element
and return a result.
public V visitMessage(Message message)
ElementVisitor
visitMessage
in interface ElementVisitor<V>
public <T> V visitBinding(Binding<T> binding)
ElementVisitor
visitBinding
in interface ElementVisitor<V>
public V visitInterceptorBinding(InterceptorBinding interceptorBinding)
ElementVisitor
visitInterceptorBinding
in interface ElementVisitor<V>
public V visitScopeBinding(ScopeBinding scopeBinding)
ElementVisitor
visitScopeBinding
in interface ElementVisitor<V>
public V visitTypeConverterBinding(TypeConverterBinding typeConverterBinding)
ElementVisitor
visitTypeConverterBinding
in interface ElementVisitor<V>
public <T> V visitProviderLookup(ProviderLookup<T> providerLookup)
ElementVisitor
visitProviderLookup
in interface ElementVisitor<V>
public V visitInjectionRequest(InjectionRequest injectionRequest)
ElementVisitor
visitInjectionRequest
in interface ElementVisitor<V>
public V visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest)
ElementVisitor
visitStaticInjectionRequest
in interface ElementVisitor<V>
public V visitPrivateElements(PrivateElements privateElements)
ElementVisitor
visitPrivateElements
in interface ElementVisitor<V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |