|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.limewire.inject.AbstractModule
public abstract class AbstractModule
An extension for (@link com.google.inject.AbstractModule} that adds extra utility methods.
| Constructor Summary | |
|---|---|
AbstractModule()
|
|
| Method Summary | ||
|---|---|---|
protected
|
bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T>... otherClasses)
Allows the caller to easily bind multiple interfaces to a single provider. |
|
protected
|
bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1)
A utility method for calling bindAll with one parameter without seeing a compile warning. |
|
protected
|
bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1,
Class<? super T> other2)
A utility method for calling bindAll with two parameters without seeing a compile warning. |
|
protected
|
bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1,
Class<? super T> other2,
Class<? super T> other3)
A utility method for calling bindAll with three parameters without seeing a compile warning. |
|
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindScope, configure, configure, convertToTypes, currentStage, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractModule()
| Method Detail |
|---|
protected <T> void bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T>... otherClasses)
bindAll(Names.named("backgroundExecutor"), ScheduledExecutorService.class, ScheduledExecutorServiceImpl.class, ExecutorService.class, Executor.class);
annotation - A shared annotation that defines the traits of the binding.submostClass - The class the provider provides.providerClass - The class of the provider.otherClasses - Other classes the provider can provide.
protected <T> void bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1)
protected <T> void bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1,
Class<? super T> other2)
protected <T> void bindAll(Annotation annotation,
Class<T> submostClass,
Class<? extends com.google.inject.Provider<? extends T>> providerClass,
Class<? super T> other1,
Class<? super T> other2,
Class<? super T> other3)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||