Package com.google.inject.binder
Interface ScopedBindingBuilder
-
- All Known Subinterfaces:
AnnotatedBindingBuilder<T>
,LinkedBindingBuilder<T>
public interface ScopedBindingBuilder
See the EDSL examples atBinder
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
asEagerSingleton()
Instructs theInjector
to eagerly initialize this singleton-scoped binding upon creation.void
in(Scope scope)
See the EDSL examples atBinder
.void
in(Class<? extends Annotation> scopeAnnotation)
See the EDSL examples atBinder
.
-
-
-
Method Detail
-
in
void in(Class<? extends Annotation> scopeAnnotation)
See the EDSL examples atBinder
.
-
asEagerSingleton
void asEagerSingleton()
-
-