class ActivityScopedFactoryBean<T : Any> : GenericScopedFactoryBean<T>
ScopedFactoryBean for beans of the ActivityScopedFactoryBeanHandler.ACTIVITY_SCOPE-scope.
Author
Christopher Frieler
ActivityScopedFactoryBean(type: KClass<T>, producer: BeansProvider.() -> T)
ScopedFactoryBean for beans of the ActivityScopedFactoryBeanHandler.ACTIVITY_SCOPE-scope. |
open val beanType: KClass<T>
Returns the type of the bean produced by this ScopedFactoryBean. |
|
open val scope: String
Returns the name of the scope, where the bean produced by this ScopedFactoryBean lives in. |
open fun produceBean(dependencies: BeansProvider): T
Produces a new bean of type T. |
fun <T : Any> activityScoped(type: Class<T>, producer: () -> T): BeanDefinition<ActivityScopedFactoryBean<*>>
Provides a BeanDefinition for a ActivityScopedFactoryBean that produces a bean of the given type using the given producer without dependencies. fun <T : Any> activityScoped(type: Class<T>, producer: BeansProvider.() -> T): BeanDefinition<ActivityScopedFactoryBean<*>>
Provides a BeanDefinition for an ActivityScopedFactoryBean that produces a bean of the given type using the given producer with dependencies. |
fun <T : Any> ScopedFactoryBean<T>.decorate(): ScopedFactoryBeanDecorator<T> |