public class

DefaultBindingScopingVisitor

extends Object
implements BindingScopingVisitor<V>
java.lang.Object
   ↳ com.google.inject.spi.DefaultBindingScopingVisitor<V>

Class Overview

No-op visitor for subclassing. All interface methods simply delegate to visitOther(), returning its result.

Summary

Public Constructors
DefaultBindingScopingVisitor()
Public Methods
V visitEagerSingleton()
Visit an eager singleton or single instance.
V visitNoScoping()
Visit an unspecified or unscoped strategy.
V visitScope(Scope scope)
Visit a scope instance.
V visitScopeAnnotation(Class<? extends Annotation> scopeAnnotation)
Visit a scope annotation.
Protected Methods
V visitOther()
Default visit implementation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.inject.spi.BindingScopingVisitor

Public Constructors

public DefaultBindingScopingVisitor ()

Public Methods

public V visitEagerSingleton ()

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

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.

public V visitScope (Scope scope)

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

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

Protected Methods

protected V visitOther ()

Default visit implementation. Returns null.