android-beans / rocks.frieler.android.beans.scopes.singleton / SingletonScopedFactoryBean / <init>

<init>

SingletonScopedFactoryBean(type: KClass<T>, producer: BeansProvider.() -> T)

ScopedFactoryBean for beans of the singleton-scope.

There will be only a single instance of that bean, just as it would when defined without any factory except that the bean will be instantiated lazily by the factory.

Author
Christopher Frieler