com.google.inject.binder
Interface ScopedBindingBuilder

All Known Subinterfaces:
AnnotatedBindingBuilder<T>, LinkedBindingBuilder<T>

public interface ScopedBindingBuilder

Specifies the scope for a binding.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 void asEagerSingleton()
          Instructs the Injector to eagerly initialize this singleton-scoped binding upon creation.
 void in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
          Specifies the scope.
 void in(Scope scope)
          Specifies the scope.
 

Method Detail

in

void in(java.lang.Class<? extends java.lang.annotation.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.


asEagerSingleton

void asEagerSingleton()
Instructs the Injector to eagerly initialize this singleton-scoped binding upon creation. Useful for application initialization logic.



Copyright © 2008. All Rights Reserved.