public class CompositeComponentDefinition extends AbstractComponentDefinition
ComponentDefinition implementation that holds one or more nested
ComponentDefinition instances, aggregating them into a named group
of components.getNestedComponents()| Constructor and Description |
|---|
CompositeComponentDefinition(java.lang.String name,
java.lang.Object source)
Create a new CompositeComponentDefinition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNestedComponent(ComponentDefinition component)
Add the given component as nested element of this composite component.
|
java.lang.String |
getName()
Get the user-visible name of this
ComponentDefinition. |
ComponentDefinition[] |
getNestedComponents()
Return the nested components that this composite component holds.
|
java.lang.Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null). |
getBeanDefinitions, getBeanReferences, getDescription, getInnerBeanDefinitions, toStringpublic CompositeComponentDefinition(java.lang.String name,
java.lang.Object source)
name - the name of the composite componentsource - the source element that defines the root of the composite componentpublic java.lang.String getName()
ComponentDefinitionComponentDefinition.
This should link back directly to the corresponding configuration data for this component in a given context.
public java.lang.Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).public void addNestedComponent(ComponentDefinition component)
component - the nested component to addpublic ComponentDefinition[] getNestedComponents()