V
- any type to be returned by the visit method. Use Void
with
return null
if no return type is needed.public abstract class DefaultBindingTargetVisitor<T,V> extends Object implements BindingTargetVisitor<T,V>
visitOther(Binding)
, returning its result.Constructor and Description |
---|
DefaultBindingTargetVisitor() |
Modifier and Type | Method and Description |
---|---|
V |
visit(ConstructorBinding<? extends T> constructorBinding)
Visit a constructor binding.
|
V |
visit(ConvertedConstantBinding<? extends T> convertedConstantBinding)
Visit a binding created from converting a bound instance to a new type.
|
V |
visit(ExposedBinding<? extends T> exposedBinding)
Visit a binding to a key exposed from an enclosed private environment.
|
V |
visit(InstanceBinding<? extends T> instanceBinding)
Visit a instance binding.
|
V |
visit(LinkedKeyBinding<? extends T> linkedKeyBinding)
Visit a linked key binding.
|
V |
visit(ProviderBinding<? extends T> providerBinding)
Visit a binding to a
Provider that delegates to the binding for the
provided type. |
V |
visit(ProviderInstanceBinding<? extends T> providerInstanceBinding)
Visit a provider instance binding.
|
V |
visit(ProviderKeyBinding<? extends T> providerKeyBinding)
Visit a provider key binding.
|
V |
visit(UntargettedBinding<? extends T> untargettedBinding)
Visit an untargetted binding.
|
protected V |
visitOther(Binding<? extends T> binding)
Default visit implementation.
|
protected V visitOther(Binding<? extends T> binding)
null
.public V visit(InstanceBinding<? extends T> instanceBinding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<T,V>
public V visit(ProviderInstanceBinding<? extends T> providerInstanceBinding)
BindingTargetVisitor
get
method is invoked to resolve
injections. This target is found in both module and injector bindings.visit
in interface BindingTargetVisitor<T,V>
public V visit(ProviderKeyBinding<? extends T> providerKeyBinding)
BindingTargetVisitor
get
method is invoked. This target is found in both module and injector
bindings.visit
in interface BindingTargetVisitor<T,V>
public V visit(LinkedKeyBinding<? extends T> linkedKeyBinding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<T,V>
public V visit(ExposedBinding<? extends T> exposedBinding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<T,V>
public V visit(UntargettedBinding<? extends T> untargettedBinding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<T,V>
public V visit(ConstructorBinding<? extends T> constructorBinding)
BindingTargetVisitor
constructor
. This target is found only on injector bindings.visit
in interface BindingTargetVisitor<T,V>
public V visit(ConvertedConstantBinding<? extends T> convertedConstantBinding)
BindingTargetVisitor
visit
in interface BindingTargetVisitor<T,V>
public V visit(ProviderBinding<? extends T> providerBinding)
BindingTargetVisitor
Provider
that delegates to the binding for the
provided type. This target is found only on injector bindings.visit
in interface BindingTargetVisitor<T,V>
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.