org.seasar.framework.container
インタフェース PropertyAssembler

既知の実装クラスの一覧:
AbstractPropertyAssembler

public interface PropertyAssembler

プロパティ・インジェクションやフィールド・インジェクションを実行してコンポーネントを組み立てます。

インジェクションの実行は、 プロパティ定義に基づいて行います。 プロパティ定義が指定されていない場合の動作は、 自動バインディング定義に基づきます。

また、 コンポーネント定義externalBinding属性がtrueの場合、 ExternalContextの保持している値もバインディングの対象とします。

作成者:
higa, jundu
関連項目:
PropertyDef, AutoBindingDef, ExternalContext

メソッドの概要
 void assemble(java.lang.Object component)
          指定されたcomponentに対して、 プロパティ・インジェクションやフィールド・インジェクションを実行します。
 

メソッドの詳細

assemble

public void assemble(java.lang.Object component)
              throws IllegalPropertyRuntimeException
指定されたcomponentに対して、 プロパティ・インジェクションやフィールド・インジェクションを実行します。 コンポーネント定義のexternalBinding属性がtrueにも関わらず、 ExternalContextがS2コンテナに設定されていない場合には、 EmptyRuntimeExceptionをスローします。

パラメータ:
component - S2コンテナ上のコンポーネントがセットされる対象
例外:
IllegalPropertyRuntimeException - プロパティが見つからないなどの理由でインジェクションに失敗した場合
EmptyRuntimeException - ExternalContextがS2コンテナに設定されていない場合


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.