class ScopedBeanDefinition<F : ScopedFactoryBean<*>, T : Any> : BeanDefinition<F>
Special BeanDefinition for ScopedFactoryBeans that is also aware of the type of bean produced by the factory-bean.
Author
Christopher Frieler
ScopedBeanDefinition(name: String? = null, factoryBeanType: KClass<F>, targetType: KClass<T>, creator: (BeansProvider) -> F)
Special BeanDefinition for ScopedFactoryBeans that is also aware of the type of bean produced by the factory-bean. |
fun canProduce(type: KClass<*>): Boolean
Indicates whether this ScopedBeanDefinition can produce a bean of the given type (or a subtype), either directly or indirectly when the ScopedFactoryBean produces its bean. |
fun getName(): String?
Returns the name for the defined bean or |
|
fun getType(): KClass<T>
Returns the type of the defined bean. |
|
fun produceBean(dependencyProvider: BeansProvider): T
Produces the bean by invoking the creator function. |