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

Package rocks.frieler.android.beans.scopes.prototype

Types

PrototypeScopedFactoryBean

class PrototypeScopedFactoryBean<T : Any> : GenericScopedFactoryBean<T>

ScopedFactoryBean for beans of the PrototypeScopedFactoryBeanHandler.PROTOTYPE_SCOPE-scope.

PrototypeScopedFactoryBeanHandler

class PrototypeScopedFactoryBeanHandler : ScopedFactoryBeanHandler

ScopedFactoryBeanHandler for the {@value #PROTOTYPE_SCOPE}-scope.

Functions

prototypeBean

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

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