android-beans / rocks.frieler.android.beans.scopes.singleton

Package rocks.frieler.android.beans.scopes.singleton

Types

SingletonScopedFactoryBean

class SingletonScopedFactoryBean<T : Any> : GenericScopedFactoryBean<T>

ScopedFactoryBean for beans of the singleton-scope.

SingletonScopedFactoryBeanHandler

class SingletonScopedFactoryBeanHandler : ScopedFactoryBeanHandler

ScopedFactoryBeanHandler for the singleton-scope.

Functions

lazyInstantiatedBean

fun <T : Any> DeclarativeBeanConfiguration.lazyInstantiatedBean(name: String? = null, definition: BeansProvider.() -> T): Unit

Adds a BeanDefinition for a SingletonScopedFactoryBean that produces a bean with the given definition, optionally with the specified name.