Package com.google.inject.binder
Interface LinkedBindingBuilder<T>
-
- All Superinterfaces:
ScopedBindingBuilder
- All Known Subinterfaces:
AnnotatedBindingBuilder<T>
- All Known Implementing Classes:
BindingBuilder
public interface LinkedBindingBuilder<T> extends ScopedBindingBuilder
See the EDSL examples atBinder
.- Author:
- crazybob@google.com (Bob Lee)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScopedBindingBuilder
to(Key<? extends T> targetKey)
See the EDSL examples atBinder
.ScopedBindingBuilder
to(TypeLiteral<? extends T> implementation)
See the EDSL examples atBinder
.ScopedBindingBuilder
to(Class<? extends T> implementation)
See the EDSL examples atBinder
.<S extends T>
ScopedBindingBuildertoConstructor(Constructor<S> constructor)
See the EDSL examples atBinder
.<S extends T>
ScopedBindingBuildertoConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type)
See the EDSL examples atBinder
.void
toInstance(T instance)
See the EDSL examples atBinder
.ScopedBindingBuilder
toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey)
See the EDSL examples atBinder
.ScopedBindingBuilder
toProvider(Provider<? extends T> provider)
See the EDSL examples atBinder
.ScopedBindingBuilder
toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples atBinder
.ScopedBindingBuilder
toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples atBinder
.ScopedBindingBuilder
toProvider(javax.inject.Provider<? extends T> provider)
See the EDSL examples atBinder
.-
Methods inherited from interface com.google.inject.binder.ScopedBindingBuilder
asEagerSingleton, in, in
-
-
-
-
Method Detail
-
to
ScopedBindingBuilder to(Class<? extends T> implementation)
See the EDSL examples atBinder
.
-
to
ScopedBindingBuilder to(TypeLiteral<? extends T> implementation)
See the EDSL examples atBinder
.
-
to
ScopedBindingBuilder to(Key<? extends T> targetKey)
See the EDSL examples atBinder
.
-
toInstance
void toInstance(T instance)
See the EDSL examples atBinder
.- See Also:
Injector.injectMembers(java.lang.Object)
-
toProvider
ScopedBindingBuilder toProvider(Provider<? extends T> provider)
See the EDSL examples atBinder
.- See Also:
Injector.injectMembers(java.lang.Object)
-
toProvider
ScopedBindingBuilder toProvider(javax.inject.Provider<? extends T> provider)
See the EDSL examples atBinder
.- Since:
- 4.0
- See Also:
Injector.injectMembers(java.lang.Object)
-
toProvider
ScopedBindingBuilder toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples atBinder
.
-
toProvider
ScopedBindingBuilder toProvider(TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType)
See the EDSL examples atBinder
.
-
toProvider
ScopedBindingBuilder toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey)
See the EDSL examples atBinder
.
-
toConstructor
<S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor)
See the EDSL examples atBinder
.- Since:
- 3.0
-
toConstructor
<S extends T> ScopedBindingBuilder toConstructor(Constructor<S> constructor, TypeLiteral<? extends S> type)
See the EDSL examples atBinder
.- Since:
- 3.0
-
-