public class

CompositeComponentDefinition

extends AbstractComponentDefinition
java.lang.Object
   ↳ org.springframework.beans.factory.parsing.AbstractComponentDefinition
     ↳ org.springframework.beans.factory.parsing.CompositeComponentDefinition
Known Direct Subclasses

Class Overview

ComponentDefinition implementation that holds one or more nested ComponentDefinition instances, aggregating them into a named group of components.

Summary

Public Constructors
CompositeComponentDefinition(String name, Object source)
Create a new CompositeComponentDefinition.
Public Methods
void addNestedComponent(ComponentDefinition component)
Add the given component as nested element of this composite component.
String getName()
ComponentDefinition[] getNestedComponents()
Return the nested components that this composite component holds.
Object getSource()
[Expand]
Inherited Methods
From class org.springframework.beans.factory.parsing.AbstractComponentDefinition
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.parsing.ComponentDefinition

Public Constructors

public CompositeComponentDefinition (String name, Object source)

Also: SpringBeans

Create a new CompositeComponentDefinition.

Parameters
name the name of the composite component
source the source element that defines the root of the composite component

Public Methods

public void addNestedComponent (ComponentDefinition component)

Also: SpringBeans

Add the given component as nested element of this composite component.

Parameters
component the nested component to add

public String getName ()

Also: SpringBeans

public ComponentDefinition[] getNestedComponents ()

Also: SpringBeans

Return the nested components that this composite component holds.

Returns
  • the array of nested components, or an empty array if none

public Object getSource ()

Also: SpringBeans