Class BeanComponentDefinition
- All Implemented Interfaces:
- BeanMetadataElement,- ComponentDefinition
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- 
Constructor SummaryConstructorsConstructorDescriptionBeanComponentDefinition(BeanDefinitionHolder beanDefinitionHolder) Create a new BeanComponentDefinition for the given bean.BeanComponentDefinition(BeanDefinition beanDefinition, String beanName) Create a new BeanComponentDefinition for the given bean.BeanComponentDefinition(BeanDefinition beanDefinition, String beanName, String[] aliases) Create a new BeanComponentDefinition for the given bean.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThis implementation expects the other object to be of type BeanComponentDefinition as well, in addition to the superclass's equality requirements.Return theBeanDefinitionsthat were registered to form thisComponentDefinition.Return the set ofBeanReferencesthat are considered to be important to thisComponentDefinition.Return a friendly description of the described component.Return theBeanDefinitionsthat represent all relevant inner beans within this component.getName()Get the user-visible name of thisComponentDefinition.toString()This implementation returns this ComponentDefinition's description.Methods inherited from class org.springframework.beans.factory.config.BeanDefinitionHoldergetAliases, getBeanDefinition, getBeanName, getLongDescription, getShortDescription, getSource, hashCode, matchesNameMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.beans.BeanMetadataElementgetSource
- 
Constructor Details- 
BeanComponentDefinitionCreate a new BeanComponentDefinition for the given bean.- Parameters:
- beanDefinition- the BeanDefinition
- beanName- the name of the bean
 
- 
BeanComponentDefinitionpublic BeanComponentDefinition(BeanDefinition beanDefinition, String beanName, @Nullable String[] aliases) Create a new BeanComponentDefinition for the given bean.- Parameters:
- beanDefinition- the BeanDefinition
- beanName- the name of the bean
- aliases- alias names for the bean, or- nullif none
 
- 
BeanComponentDefinitionCreate a new BeanComponentDefinition for the given bean.- Parameters:
- beanDefinitionHolder- the BeanDefinitionHolder encapsulating the bean definition as well as the name of the bean
 
 
- 
- 
Method Details- 
getNameDescription copied from interface:ComponentDefinitionGet the user-visible name of thisComponentDefinition.This should link back directly to the corresponding configuration data for this component in a given context. - Specified by:
- getNamein interface- ComponentDefinition
 
- 
getDescriptionDescription copied from interface:ComponentDefinitionReturn a friendly description of the described component.Implementations are encouraged to return the same value from toString().- Specified by:
- getDescriptionin interface- ComponentDefinition
 
- 
getBeanDefinitionsDescription copied from interface:ComponentDefinitionReturn theBeanDefinitionsthat were registered to form thisComponentDefinition.It should be noted that a ComponentDefinitionmay well be related with otherBeanDefinitionsviareferences, however these are not included as they may be not available immediately. ImportantBeanReferencesare available fromComponentDefinition.getBeanReferences().- Specified by:
- getBeanDefinitionsin interface- ComponentDefinition
- Returns:
- the array of BeanDefinitions, or an empty array if none
 
- 
getInnerBeanDefinitionsDescription copied from interface:ComponentDefinitionReturn theBeanDefinitionsthat represent all relevant inner beans within this component.Other inner beans may exist within the associated BeanDefinitions, however these are not considered to be needed for validation or for user visualization.- Specified by:
- getInnerBeanDefinitionsin interface- ComponentDefinition
- Returns:
- the array of BeanDefinitions, or an empty array if none
 
- 
getBeanReferencesDescription copied from interface:ComponentDefinitionReturn the set ofBeanReferencesthat are considered to be important to thisComponentDefinition.Other BeanReferencesmay exist within the associatedBeanDefinitions, however these are not considered to be needed for validation or for user visualization.- Specified by:
- getBeanReferencesin interface- ComponentDefinition
- Returns:
- the array of BeanReferences, or an empty array if none
 
- 
toStringThis implementation returns this ComponentDefinition's description.- Overrides:
- toStringin class- BeanDefinitionHolder
- See Also:
 
- 
equalsThis implementation expects the other object to be of type BeanComponentDefinition as well, in addition to the superclass's equality requirements.- Overrides:
- equalsin class- BeanDefinitionHolder
 
 
-