com.google.inject.binder
Interface ScopedBindingBuilder

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

public interface ScopedBindingBuilder

Specifies the scope for a binding.


Method Summary
 void asEagerSingleton()
          Instructs the Injector to eagerly initialize this singleton-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.


asEagerSingleton

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



Copyright 2007 Google Inc. All Rights Reserved.