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