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.


Method Summary
 IScopedBindingBuilder<T> to(Class<? extends T> pImplClass)
           
<S extends T>
IScopedBindingBuilder<T>
to(Class<S> pType, com.google.inject.Provider<S> pProvider)
           
 IScopedBindingBuilder<T> to(Constructor<? extends T> pConstructor)
           
 IScopedBindingBuilder<T> to(IProvider<? extends T> pProvider)
           
 IScopedBindingBuilder<T> to(Method pFactoryMethod)
           
 void toInstance(T pInstance)
           
 
Methods inherited from interface org.apache.commons.inject.api.bind.IScopedBindingBuilder
asEagerSingleton, asLazySingleton, scope
 

Method Detail

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.