toothpick-runtime / toothpick / InternalScopedProvider

InternalScopedProvider

open class InternalScopedProvider<T : Any> : InternalProvider<T>

A non thread safe internal provider. It should never be exposed outside of Toothpick.

Parameters

- the class of the instances provided by this provider.

Constructors

<init>

InternalScopedProvider(scope: Scope, factory: Factory<T>)
InternalScopedProvider(scope: Scope, instance: T)
InternalScopedProvider(scope: Scope, providerInstance: Provider<out T>, isProvidingSingleton: Boolean, isProvidingReleasable: Boolean)
InternalScopedProvider(scope: Scope, factoryKeyClass: Class<out T>, isCreatingSingletonInScope: Boolean, isCreatingReleasableInScope: Boolean)
InternalScopedProvider(scope: Scope, factoryKeyClass: Class<out Provider<out T>>, isCreatingSingletonInScope: Boolean, isCreatingReleasableInScope: Boolean, isProvidingSingletonInScope: Boolean, isProvidingReleasable: Boolean)

Functions

get

open fun get(scope: Scope): T