INNER CODE UNIT · Kotlin

ImplWithScope

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

        public class ImplWithScope<C : Any>(override val contextType: TypeToken<C>, override val scope: Scope<C>) :
            WithScope<C> {

            override val explicitContext: Boolean get() = true
        }

    }

    /**
     * Allows for the DSL inside the block argument of the constructor of `DI` and `DI.Module`.
     *
     * Methods of this classes are really just proxies to the [DIContainer.Builder] methods.
     *
     * @property containerBuilder Every methods eventually ends up to a call to this builder.
     */
    @DIDsl
    public interface Builder : BindBuilder<Any>, BindBuilder.WithScope<Any> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…