public class

GenericBeanDefinition

extends AbstractBeanDefinition
java.lang.Object
   ↳ org.springframework.core.AttributeAccessorSupport
     ↳ org.springframework.beans.BeanMetadataAttributeAccessor
       ↳ org.springframework.beans.factory.support.AbstractBeanDefinition
         ↳ org.springframework.beans.factory.support.GenericBeanDefinition
Known Direct Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class org.springframework.beans.factory.support.AbstractBeanDefinition
From interface org.springframework.beans.factory.config.BeanDefinition
Public Constructors
GenericBeanDefinition()
Create a new GenericBeanDefinition, to be configured through its bean properties and configuration methods.
GenericBeanDefinition(BeanDefinition original)
Create a new GenericBeanDefinition as deep copy of the given bean definition.
Public Methods
AbstractBeanDefinition cloneBeanDefinition()
Clone this bean definition.
boolean equals(Object other)
String getParentName()
void setParentName(String parentName)
String toString()
[Expand]
Inherited Methods
From class org.springframework.beans.factory.support.AbstractBeanDefinition
From class org.springframework.beans.BeanMetadataAttributeAccessor
From class org.springframework.core.AttributeAccessorSupport
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.config.BeanDefinition
From interface org.springframework.core.AttributeAccessor

Public Constructors

public GenericBeanDefinition ()

Also: SpringBeans

public GenericBeanDefinition (BeanDefinition original)

Also: SpringBeans

Create a new GenericBeanDefinition as deep copy of the given bean definition.

Parameters
original the original bean definition to copy from

Public Methods

public AbstractBeanDefinition cloneBeanDefinition ()

Also: SpringBeans

Clone this bean definition. To be implemented by concrete subclasses.

Returns
  • the cloned bean definition object

public boolean equals (Object other)

Also: SpringBeans

public String getParentName ()

Also: SpringBeans

public void setParentName (String parentName)

Also: SpringBeans

public String toString ()

Also: SpringBeans