Class GenericBeanDefinition

All Implemented Interfaces:
Serializable, Cloneable, BeanMetadataElement, BeanDefinition, AttributeAccessor
Direct Known Subclasses:
AnnotatedGenericBeanDefinition, ScannedGenericBeanDefinition

public class GenericBeanDefinition extends AbstractBeanDefinition
GenericBeanDefinition is a one-stop shop for declarative bean definition purposes. Like all common bean definitions, 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 declarative bean definitions (e.g. XML definitions which a bean post-processor might operate on, potentially even reconfiguring the parent name). Use RootBeanDefinition/ChildBeanDefinition where parent/child relationships happen to be pre-determined, and prefer RootBeanDefinition specifically for programmatic definitions derived from factory methods/suppliers.

Since:
2.5
Author:
Juergen Hoeller
See Also: