INNER CODE UNIT · Kotlin

ImplWithContext

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

        public class ImplWithContext<C : Any>(override val contextType: TypeToken<C>) : BindBuilder<C> {

            override val explicitContext: Boolean get() = true
        }

        /**
         * Used to define bindings with a scope.
         *
         * @param C The scope's Context.
         */
        public interface WithScope<C : Any> : BindBuilder<C> {

            /**
             * The scope that will be used by all bindings that are defined in this DSL context.
             */
            public val scope: Scope<C>
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…