public interface LinkedBindingBuilder<T> extends SingletonBindingBuilder<T>
Modifier and Type | Method and Description |
---|---|
SingletonBindingBuilder<T> |
to(Class<? extends T> target) |
void |
toInstance(T instance) |
SingletonBindingBuilder<T> |
toProvider(Class<? extends javax.inject.Provider<T>> providerType) |
SingletonBindingBuilder<T> |
toProvider(javax.inject.Provider<T> provider) |
asSingleton
getBinding
@Nonnull SingletonBindingBuilder<T> toProvider(@Nonnull javax.inject.Provider<T> provider)