org.apache.commons.inject.api.bind
Interface ILinkedBindingBuilder<T>
- All Superinterfaces:
- IScopedBindingBuilder<T>
- All Known Subinterfaces:
- IAnnotatedBindingBuilder<T>
- All Known Implementing Classes:
- DefaultBindingBuilder
public interface ILinkedBindingBuilder<T>
- extends IScopedBindingBuilder<T>
A binding builder, which allows to specify a bindings target: A
target is the value, that gets injected, if the binding is applied.
toInstance
void toInstance(T pInstance)
to
IScopedBindingBuilder<T> to(Class<? extends T> pImplClass)
to
IScopedBindingBuilder<T> to(Constructor<? extends T> pConstructor)
to
IScopedBindingBuilder<T> to(Method pFactoryMethod)
to
<S extends T> IScopedBindingBuilder<T> to(Class<S> pType,
com.google.inject.Provider<S> pProvider)
to
IScopedBindingBuilder<T> to(IProvider<? extends T> pProvider)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.