|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BindingImplementationBuilder<T>
Specifies an implementation for a binding.
Method Summary | |
---|---|
BindingScopeBuilder |
to(Class<? extends T> implementation)
Binds to instances of the given implementation class. |
BindingScopeBuilder |
to(TypeLiteral<? extends T> implementation)
Binds to instances of the given implementation class. |
BindingScopeBuilder |
toFactory(Class<? extends Factory<? extends T>> factoryType)
Binds to instances from the factory bound to the given factory type. |
BindingScopeBuilder |
toFactory(Factory<? extends T> factory)
Binds to instances generated by the given factory. |
BindingScopeBuilder |
toFactory(Key<? extends Factory<? extends T>> factoryKey)
Binds to instances from the factory bound to the given key. |
void |
toInstance(T instance)
Binds to the given instance. |
Method Detail |
---|
BindingScopeBuilder to(Class<? extends T> implementation)
Container
will inject implementation
as
well. Sets the scope based on an annotation on the implementation
class if present.
BindingScopeBuilder to(TypeLiteral<? extends T> implementation)
Container
will inject implementation
as
well. Sets the scope based on an annotation on the implementation
class if present.
void toInstance(T instance)
BindingScopeBuilder toFactory(Factory<? extends T> factory)
BindingScopeBuilder toFactory(Class<? extends Factory<? extends T>> factoryType)
BindingScopeBuilder toFactory(Key<? extends Factory<? extends T>> factoryKey)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |