- Type Parameters:
V- any type to be returned by the visit method. Use
return nullif no return type is needed.
- All Implemented Interfaces:
No-op visitor for subclassing. All interface methods simply delegate to
visitOther(), returning its result.
visitOtherprotected V visitOther()Default visit implementation. Returns
visitEagerSingletonpublic V visitEagerSingleton()Visit an eager singleton or single instance. This scope strategy is found on both module and injector bindings.
visitScopeVisit a scope instance. This scope strategy is found on both module and injector bindings.
visitScopeAnnotationVisit a scope annotation. This scope strategy is found only on module bindings. The instance that implements this scope is registered by
visitNoScopingpublic 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.