public interface LinkedBindingBuilder<T> extends ScopedBindingBuilder
Binder
.Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
to(java.lang.Class<? extends T> implementation)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
to(Key<? extends T> targetKey)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
to(TypeLiteral<? extends T> implementation)
See the EDSL examples at
Binder . |
<S extends T> |
toConstructor(java.lang.reflect.Constructor<S> constructor)
See the EDSL examples at
Binder . |
<S extends T> |
toConstructor(java.lang.reflect.Constructor<S> constructor,
TypeLiteral<? extends S> type)
See the EDSL examples at
Binder . |
void |
toInstance(T instance)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
toProvider(java.lang.Class<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
toProvider(Provider<? extends T> provider)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
toProvider(javax.inject.Provider<? extends T> provider)
See the EDSL examples at
Binder . |
ScopedBindingBuilder |
toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples at
Binder . |
asEagerSingleton, in, in
ScopedBindingBuilder to(java.lang.Class<? extends T> implementation)
Binder
.ScopedBindingBuilder to(TypeLiteral<? extends T> implementation)
Binder
.ScopedBindingBuilder to(Key<? extends T> targetKey)
Binder
.void toInstance(T instance)
Binder
.Injector.injectMembers(java.lang.Object)
ScopedBindingBuilder toProvider(Provider<? extends T> provider)
Binder
.Injector.injectMembers(java.lang.Object)
ScopedBindingBuilder toProvider(javax.inject.Provider<? extends T> provider)
Binder
.Injector.injectMembers(java.lang.Object)
ScopedBindingBuilder toProvider(java.lang.Class<? extends javax.inject.Provider<? extends T>> providerType)
Binder
.ScopedBindingBuilder toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType)
Binder
.ScopedBindingBuilder toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey)
Binder
.<S extends T> ScopedBindingBuilder toConstructor(java.lang.reflect.Constructor<S> constructor)
Binder
.<S extends T> ScopedBindingBuilder toConstructor(java.lang.reflect.Constructor<S> constructor, TypeLiteral<? extends S> type)
Binder
.