java.lang.Object | |
↳ | org.springframework.beans.factory.config.BeanDefinitionHolder |
![]() |
Holder for a BeanDefinition with name and aliases. Can be registered as a placeholder for an inner bean.
Can also be used for programmatic registration of inner bean definitions. If you don't care about BeanNameAware and the like, registering RootBeanDefinition or ChildBeanDefinition is good enough.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanDefinitionHolder.
| |||||||||||
Create a new BeanDefinitionHolder.
| |||||||||||
Copy constructor: Create a new BeanDefinitionHolder with the
same contents as the given BeanDefinitionHolder instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the alias names for the bean, as specified directly for the bean definition.
| |||||||||||
Return the wrapped BeanDefinition.
| |||||||||||
Return the primary name of the bean, as specified for the bean definition.
| |||||||||||
Return a long description for the bean, including name and aliases
as well as a description of the contained
BeanDefinition . | |||||||||||
Return a friendly, short description for the bean, stating name and aliases.
| |||||||||||
Expose the bean definition's source object.
| |||||||||||
Determine whether the given candidate name matches the bean name
or the aliases stored in this bean definition.
| |||||||||||
This implementation returns the long description.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Create a new BeanDefinitionHolder.
beanDefinition | the BeanDefinition to wrap |
---|---|
beanName | the name of the bean, as specified for the bean definition |
Create a new BeanDefinitionHolder.
beanDefinition | the BeanDefinition to wrap |
---|---|
beanName | the name of the bean, as specified for the bean definition |
aliases | alias names for the bean, or null if none
|
Copy constructor: Create a new BeanDefinitionHolder with the same contents as the given BeanDefinitionHolder instance.
Note: The wrapped BeanDefinition reference is taken as-is;
it is not
deeply copied.
beanDefinitionHolder | the BeanDefinitionHolder to copy |
---|
Return the alias names for the bean, as specified directly for the bean definition.
null
if none
Return the primary name of the bean, as specified for the bean definition.
Return a long description for the bean, including name and aliases
as well as a description of the contained BeanDefinition
.
Return a friendly, short description for the bean, stating name and aliases.
Determine whether the given candidate name matches the bean name or the aliases stored in this bean definition.
This implementation returns the long description. Can be overridden to return the short description or any kind of custom description instead.