|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- An interface type of the service being bound.public interface BindingBuilder<T>
A binding builder that helps with fluent binding creation.
Method Summary | |
---|---|
void |
in(Scope scope)
Sets the scope of a bound instance. |
void |
inSingletonScope()
Sets the scope of a bound instance to singleton. |
BindingBuilder<T> |
to(java.lang.Class<? extends T> implementation)
|
BindingBuilder<T> |
toInstance(T instance)
|
BindingBuilder<T> |
toProvider(java.lang.Class<? extends Provider<? extends T>> providerType)
|
BindingBuilder<T> |
toProviderInstance(Provider<? extends T> provider)
|
void |
withoutScope()
Sets the scope of a bound instance to "no scope". |
Method Detail |
---|
BindingBuilder<T> to(java.lang.Class<? extends T> implementation) throws ConfigurationException
ConfigurationException
BindingBuilder<T> toInstance(T instance) throws ConfigurationException
ConfigurationException
BindingBuilder<T> toProvider(java.lang.Class<? extends Provider<? extends T>> providerType) throws ConfigurationException
ConfigurationException
BindingBuilder<T> toProviderInstance(Provider<? extends T> provider) throws ConfigurationException
ConfigurationException
void in(Scope scope)
void inSingletonScope()
void withoutScope()
Injector.getInstance(Class)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |