クラス CompositeComponentDefinition
java.lang.ObjectSE
org.springframework.beans.factory.parsing.AbstractComponentDefinition
org.springframework.beans.factory.parsing.CompositeComponentDefinition
- 実装されているすべてのインターフェース:
BeanMetadataElement,ComponentDefinition
- 既知の直属サブクラス
AspectComponentDefinition
1 つ以上のネストされた
ComponentDefinition インスタンスを保持し、コンポーネントの名前付きグループに集約する ComponentDefinition 実装。- 導入:
- 2.0.1
- 作成者:
- Juergen Hoeller
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明CompositeComponentDefinition(StringSE name, ObjectSE source) 新しい CompositeComponentDefinition を作成します。メソッドのサマリー
修飾子と型メソッド説明voidaddNestedComponent(ComponentDefinition component) この複合コンポーネントのネストされた要素として、指定されたコンポーネントを追加します。getName()このComponentDefinitionのユーザーに表示される名前を取得します。この複合コンポーネントが保持するネストされたコンポーネントを返します。このメタデータ要素の構成ソースObjectを返します(nullの場合があります)。クラス org.springframework.beans.factory.parsing.AbstractComponentDefinition から継承されたメソッド
getBeanDefinitions, getBeanReferences, getDescription, getInnerBeanDefinitions, toString
コンストラクターの詳細
CompositeComponentDefinition
新しい CompositeComponentDefinition を作成します。- パラメーター:
name- 複合コンポーネントの名前source- 複合コンポーネントのルートを定義するソース要素
メソッドの詳細
getName
インターフェースからコピーされた説明:ComponentDefinitionこのComponentDefinitionのユーザーに表示される名前を取得します。これは、特定のコンテキストでこのコンポーネントに対応する構成データに直接リンクする必要があります。
getSource
インターフェースからコピーされた説明:BeanMetadataElementこのメタデータ要素の構成ソースObjectを返します(nullの場合があります)。addNestedComponent
この複合コンポーネントのネストされた要素として、指定されたコンポーネントを追加します。- パラメーター:
component- 追加するネストされたコンポーネント
getNestedComponents
この複合コンポーネントが保持するネストされたコンポーネントを返します。- 戻り値:
- ネストされたコンポーネントの配列、ない場合は空の配列