|
|||||||||
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> command)
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 command)
Visit a request to inject the instance fields and methods of an instance. |
|
V |
visitInterceptorBinding(InterceptorBinding command)
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. |
|
|
visitProviderLookup(ProviderLookup<T> command)
Visit a lookup of the provider for a type. |
|
V |
visitScopeBinding(ScopeBinding command)
Visit a registration of a scope annotation with the scope that implements it. |
|
V |
visitStaticInjectionRequest(StaticInjectionRequest command)
Visit a request to inject the static fields and methods of type. |
|
V |
visitTypeConverterBinding(TypeConverterBinding command)
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> command)
ElementVisitor
visitBinding
in interface ElementVisitor<V>
public V visitInterceptorBinding(InterceptorBinding command)
ElementVisitor
visitInterceptorBinding
in interface ElementVisitor<V>
public V visitScopeBinding(ScopeBinding command)
ElementVisitor
visitScopeBinding
in interface ElementVisitor<V>
public V visitTypeConverterBinding(TypeConverterBinding command)
ElementVisitor
visitTypeConverterBinding
in interface ElementVisitor<V>
public <T> V visitProviderLookup(ProviderLookup<T> command)
ElementVisitor
visitProviderLookup
in interface ElementVisitor<V>
public V visitInjectionRequest(InjectionRequest command)
ElementVisitor
visitInjectionRequest
in interface ElementVisitor<V>
public V visitStaticInjectionRequest(StaticInjectionRequest command)
ElementVisitor
visitStaticInjectionRequest
in interface ElementVisitor<V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |