INNER CODE UNIT · Kotlin

DelegateBinder

kosi-libs/Kodein · kodein-di/src/commonMain/kotlin/org/kodein/di/DI.kt:256

        public abstract class DelegateBinder<T : Any> {

            /**
             * Delegates the binding of a given type with a given tag.
             *
             * @param T The type of value to bind.
             * @param type The type to delegate the binding to.
             * @param tag The tag to bind.
             * @return The binder: call [TypeBinder.with]) on it to finish the binding syntax and register the binding.
             */
            @Suppress("FunctionName")
            public abstract fun <A : T> To(type: TypeToken<A>, tag: Any?)

            /**
             * Delegates the binding of a given type with a given tag.
             *
             * @param T The type of value to bind.
             * @param type The type to delegate the binding to.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…