open class GenericBeanDefinition : AbstractBeanDefinition
GenericBeanDefinition is a one-stop shop for standard bean definition purposes. Like any bean definition, it allows for specifying a class plus optionally constructor argument values and property values. Additionally, deriving from a parent bean definition can be flexibly configured through the "parentName" property.
In general, use this GenericBeanDefinition class for the purpose of registering user-visible bean definitions (which a post-processor might operate on, potentially even reconfiguring the parent name). Use RootBeanDefinition / ChildBeanDefinition where parent/child relationships happen to be pre-determined.
Author
Juergen Hoeller
Since
2.5
See Also
#setParentNameRootBeanDefinitionChildBeanDefinition
GenericBeanDefinition()
Create a new GenericBeanDefinition, to be configured through its bean properties and configuration methods. GenericBeanDefinition(original: BeanDefinition)
Create a new GenericBeanDefinition as deep copy of the given bean definition. |
open fun cloneBeanDefinition(): AbstractBeanDefinition |
|
open fun equals(other: Any?): Boolean |
|
open fun getParentName(): String |
|
open fun setParentName(parentName: String): Unit |
|
open fun toString(): String |
open class AnnotatedGenericBeanDefinition : GenericBeanDefinition, AnnotatedBeanDefinition
Extension of the org.springframework.beans.factory.support.GenericBeanDefinition class, adding support for annotation metadata exposed through the AnnotatedBeanDefinition interface. This GenericBeanDefinition variant is mainly useful for testing code that expects to operate on an AnnotatedBeanDefinition, for example strategy implementations in Spring's component scanning support (where the default definition class is org.springframework.context.annotation.ScannedGenericBeanDefinition, which also implements the AnnotatedBeanDefinition interface). |
|
open class ScannedGenericBeanDefinition : GenericBeanDefinition, AnnotatedBeanDefinition
Extension of the org.springframework.beans.factory.support.GenericBeanDefinition class, based on an ASM ClassReader, with support for annotation metadata exposed through the AnnotatedBeanDefinition interface. This class does not load the bean |