setDelegate

fun <T : Any> setDelegate(delegateFactory: Provider<T>, delegate: Provider<T>)(source)

Sets delegateFactory's delegate provider to delegate.

delegateFactory must be an instance of DelegateFactory, otherwise this method will throw a ClassCastException.