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.
setParentName, RootBeanDefinition, ChildBeanDefinition
| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| public | GenericBeanDefinition()
Create a new GenericBeanDefinition, to be configured through its bean properties and configuration methods. |
| public | GenericBeanDefinition(BeanDefinition
the original bean definition to copy from original)Create a new GenericBeanDefinition as deep copy of the given bean definition. |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractBeanDefinition | cloneBeanDefinition()
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public String | getParentName()
Implements org. |
| public void | setParentName(String parentName)
Implements org. |
| public String | toString()
Overrides org. |
| parentName | back to summary |
|---|---|
| private String parentName
| |
| GenericBeanDefinition | back to summary |
|---|---|
| public GenericBeanDefinition() Create a new GenericBeanDefinition, to be configured through its bean properties and configuration methods. | |
| GenericBeanDefinition | back to summary |
|---|---|
| public GenericBeanDefinition(BeanDefinition original) Create a new GenericBeanDefinition as deep copy of the given bean definition.
| |
| cloneBeanDefinition | back to summary |
|---|---|
| public AbstractBeanDefinition cloneBeanDefinition() Implements abstract org. Doc from org. Clone this bean definition. To be implemented by concrete subclasses.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getParentName | back to summary |
|---|---|
| public String getParentName() Implements org. Doc from org. Return the name of the parent definition of this bean definition, if any. | |
| setParentName | back to summary |
|---|---|
| public void setParentName(String parentName) Implements org. Doc from org. Set the name of the parent definition of this bean definition, if any.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |