open class CanBeBound<T : Any>
CanBeBound(delegate: CanBeBound<T>) |
open val delegate: CanBeBound<T> |
fun singleton(): CanBeReleasable<T>
DSL method to make a binding Singleton. |
|
fun toClass(implClass: KClass<out T>): CanBeSingleton<T>
DSL method to associate an implementation class to a binding. fun <P : T> toClass(): CanBeSingleton<T>
DSL method to associate an implementation class to a binding, more Kotlin friendly. |
|
fun toInstance(instance: T): Unitfun toInstance(instanceProvider: () -> T): Unit
DSL method to associate an instance to a binding, more Kotlin friendly. |
|
fun toProvider(providerClass: KClass<out Provider<out T>>): CanProvideSingletonOrSingleton<T>
DSL method to associate an provider to a binding, more Kotlin friendly. |
|
fun toProviderInstance(providerInstance: Provider<out T>): CanProvideSingleton<T>fun toProviderInstance(providerInstanceProvider: () -> T): CanProvideSingleton<T>
DSL method to associate an provider impl to a binding, more Kotlin friendly. |
class CanBeNamed<T : Any> : CanBeBound<T> |