public interface

BindingScopingVisitor

com.google.inject.spi.BindingScopingVisitor<V>
Known Indirect Subclasses

Class Overview

Visits each of the strategies used to scope an injection.

Summary

Public Methods
abstract V visitEagerSingleton()
Visit an eager singleton or single instance.
abstract V visitNoScoping()
Visit an unspecified or unscoped strategy.
abstract V visitScope(Scope scope)
Visit a scope instance.
abstract V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)
Visit a scope annotation.

Public Methods

public abstract V visitEagerSingleton ()

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

public abstract 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.

public abstract V visitScope (Scope scope)

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

public abstract 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().