Class CompositeComponentDefinition
java.lang.Object
org.springframework.beans.factory.parsing.AbstractComponentDefinition
org.springframework.beans.factory.parsing.CompositeComponentDefinition
- All Implemented Interfaces:
- BeanMetadataElement,- ComponentDefinition
- Direct Known Subclasses:
- AspectComponentDefinition
ComponentDefinition implementation that holds one or more nested
 ComponentDefinition instances, aggregating them into a named group
 of components.- Since:
- 2.0.1
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCompositeComponentDefinition(String name, @Nullable Object source) Create a new CompositeComponentDefinition.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddNestedComponent(ComponentDefinition component) Add the given component as nested element of this composite component.getName()Get the user-visible name of thisComponentDefinition.Return the nested components that this composite component holds.Return the configuration sourceObjectfor this metadata element (may benull).Methods inherited from class org.springframework.beans.factory.parsing.AbstractComponentDefinitiongetBeanDefinitions, getBeanReferences, getDescription, getInnerBeanDefinitions, toString
- 
Constructor Details- 
CompositeComponentDefinition
 
- 
- 
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. 
- 
getSourceDescription copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).
- 
addNestedComponentAdd the given component as nested element of this composite component.- Parameters:
- component- the nested component to add
 
- 
getNestedComponentsReturn the nested components that this composite component holds.- Returns:
- the array of nested components, or an empty array if none
 
 
-