V
- any type to be returned by the visit method. Use Void
with
return null
if no return type is needed.public class DefaultBindingScopingVisitor<V> extends Object implements BindingScopingVisitor<V>
visitOther()
, returning its result.Constructor and Description |
---|
DefaultBindingScopingVisitor() |
Modifier and Type | Method and Description |
---|---|
V |
visitEagerSingleton()
Visit an eager singleton or single instance.
|
V |
visitNoScoping()
Visit an unspecified or unscoped strategy.
|
protected V |
visitOther()
Default visit implementation.
|
V |
visitScope(Scope scope)
Visit a scope instance.
|
V |
visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)
Visit a scope annotation.
|
protected V visitOther()
null
.public V visitEagerSingleton()
BindingScopingVisitor
visitEagerSingleton
in interface BindingScopingVisitor<V>
public V visitScope(Scope scope)
BindingScopingVisitor
visitScope
in interface BindingScopingVisitor<V>
public V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)
BindingScopingVisitor
Binder.bindScope()
.visitScopeAnnotation
in interface BindingScopingVisitor<V>
public V visitNoScoping()
BindingScopingVisitor
visitNoScoping
in interface BindingScopingVisitor<V>
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.