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

ScopedFactoryBeanHandler

interface ScopedFactoryBeanHandler

Interface for classes handling ScopedFactoryBeans of the corresponding scope.

Author
Christopher Frieler

Properties

isActive

abstract val isActive: Boolean

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

name

abstract val name: String

Returns the name of the scope.

Functions

getBean

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

Returns the bean defined by the given ScopedFactoryBean.

Inheritors

ActivityScopedFactoryBeanHandler

class ActivityScopedFactoryBeanHandler : ScopedFactoryBeanHandler

ScopedFactoryBeanHandler for the ACTIVITY_SCOPE-scope.

PrototypeScopedFactoryBeanHandler

class PrototypeScopedFactoryBeanHandler : ScopedFactoryBeanHandler

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

SingletonScopedFactoryBeanHandler

class SingletonScopedFactoryBeanHandler : ScopedFactoryBeanHandler

ScopedFactoryBeanHandler for the singleton-scope.