Top Description Methods
com.google.inject.spi

public Interface BindingScopingVisitor<V>

Known Direct Implementers
com.google.inject.spi.DefaultBindingScopingVisitor, com.google.inject.internal.Indexer
Type Parameters
<V>
any type to be returned by the visit method. Use Void with return null if no return type is needed.
Imports
com.google.inject.Scope, java.lang.annotation.Annotation

Visits each of the strategies used to scope an injection.
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public V
visitEagerSingleton()

Visit an eager singleton or single instance.

public V
visitNoScoping()

Visit an unspecified or unscoped strategy.

public V
visitScope(Scope scope)

Visit a scope instance.

public V
visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)

Visit a scope annotation.

Method Detail

visitEagerSingletonback to summary
public V visitEagerSingleton()

Visit an eager singleton or single instance. This scope strategy is found on both module and injector bindings.

visitNoScopingback to summary
public V visitNoScoping()

Visit an unspecified or unscoped strategy. On a module, this strategy indicates that the injector should use scoping annotations to find a scope. On an injector, it indicates that no scope is applied to the binding. An unscoped binding will behave like a scoped one when it is linked to a scoped binding.

visitScopeback to summary
public V visitScope(Scope scope)

Visit a scope instance. This scope strategy is found on both module and injector bindings.

visitScopeAnnotationback to summary
public V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)

Visit a scope annotation. This scope strategy is found only on module bindings. The instance that implements this scope is registered by Binder.bindScope().