com.google.inject.binder
Interface BindingScopeBuilder

All Known Subinterfaces:
BindingBuilder<T>

public interface BindingScopeBuilder

Specifies the scope for a binding.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 void eagerlyInContainer()
          Instructs the Container to eagerly load this container-scoped binding upon creation.
 void in(Class<? extends Annotation> scopeAnnotation)
          Specifies the scope.
 void in(Scope scope)
          Specifies the scope.
 

Method Detail

in

void in(Class<? extends Annotation> scopeAnnotation)
Specifies the scope. References the annotation passed to Binder.bindScope(Class, com.google.inject.Scope).


in

void in(Scope scope)
Specifies the scope.


eagerlyInContainer

void eagerlyInContainer()
Instructs the Container to eagerly load this container-scoped binding upon creation. Useful for application initialization logic.