|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.container.customizer.AbstractCustomizer
org.seasar.framework.container.customizer.MetaCustomizer
コンポーネント定義
に
メタデータ定義
を 登録するコンポーネントカスタマイザです。
コンポーネント定義に登録するメタデータ定義は、カスタマイザ自身のコンポーネント定義に autoRegister
という名前で定義されたメタデータ定義に設定されたメタデータ定義となります。
diconファイルでは次のように記述します。
<component class="org.seasar.framework.container.customizer.MetaCustomizer"> <meta name="autoRegister"> <meta name="remoting"/> </meta> </component>この例では、
remoting
という名前を持つメタデータ定義がコンポーネント定義に 設定されます。
autoRegister
という名前で定義されたメタデータ定義には、複数のメタデータ定義を
設定することができます。その場合、すべてのメタデータ定義がそのままの順番でコンポーネント定義に 設定されます。
フィールドの概要 | |
protected ComponentDef |
componentDef
ComponentDef です。 |
クラス org.seasar.framework.container.customizer.AbstractCustomizer から継承したフィールド |
classPatterns, ignoreClassPatterns, targetInterface, targetInterface_BINDING |
コンストラクタの概要 | |
MetaCustomizer()
|
メソッドの概要 | |
protected void |
doCustomize(ComponentDef componentDef)
カスタマイズ対象のコンポーネント定義をカスタマイズをします。 |
protected MetaDef |
getMetaDef()
このカスタマイザ自身のコンポーネント定義に autoRegister という名前で定義されたメタデータ定義を返します。 |
void |
setComponentDef(ComponentDef componentDef)
コンポーネント定義を設定します。 |
クラス org.seasar.framework.container.customizer.AbstractCustomizer から継承したメソッド |
addClassPattern, addClassPattern, addIgnoreClassPattern, addIgnoreClassPattern, customize, isMatchClassPattern, isMatchTargetInterface, setTargetInterface |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected ComponentDef componentDef
ComponentDef
です。
コンストラクタの詳細 |
public MetaCustomizer()
メソッドの詳細 |
public void setComponentDef(ComponentDef componentDef)
このメソッドは、このコンポーネント自身のコンポーネント定義を引数として、S2コンテナから呼び出されることを意図しています。
componentDef
- コンポーネント定義protected void doCustomize(ComponentDef componentDef)
このカスタマイザ自身のコンポーネント定義にautoRegister
という名前で定義されたメタデータ定義に設定されたメタデータ定義を
コンポーネント定義に登録します。
AbstractCustomizer
内の doCustomize
componentDef
- コンポーネント定義protected MetaDef getMetaDef()
autoRegister
という名前で定義されたメタデータ定義を返します。
autoRegister
という名前で定義されたメタデータ定義
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |