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

PrototypeScopedFactoryBeanHandler

class PrototypeScopedFactoryBeanHandler : ScopedFactoryBeanHandler

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

It produces a new bean-instance every time.

Author
Christopher Frieler

Constructors

<init>

PrototypeScopedFactoryBeanHandler()

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

Properties

isActive

val isActive: Boolean

Checks whether the scope is active, i.e. if beans of this scope are currently available.

name

val name: String

Returns the name of the scope.

Functions

getBean

fun <T : Any> getBean(name: String, factoryBean: ScopedFactoryBean<T>, dependencies: BeansProvider): T

Returns the bean defined by the given ScopedFactoryBean.

Companion Object Properties

PROTOTYPE_SCOPE

const val PROTOTYPE_SCOPE: String