org.seasar.framework.container.assembler
クラス AbstractBindingTypeDef

java.lang.Object
  拡張org.seasar.framework.container.assembler.AbstractBindingTypeDef
すべての実装インタフェース:
BindingTypeDef
直系の既知のサブクラス:
BindingTypeMayDef, BindingTypeMustDef, BindingTypeNoneDef, BindingTypeShouldDef

public abstract class AbstractBindingTypeDef
extends Object
implements BindingTypeDef

バインディングタイプ定義の抽象クラスです。

作成者:
higa

フィールドの概要
 
インタフェース org.seasar.framework.container.BindingTypeDef から継承したフィールド
MAY_NAME, MUST_NAME, NONE_NAME, SHOULD_NAME
 
コンストラクタの概要
protected AbstractBindingTypeDef(String name)
           
 
メソッドの概要
 void bind(ComponentDef componentDef, PropertyDef propertyDef, Field field, Object component)
          バインディングタイプ定義に基づいて、 componentに対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。
 void bind(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, Object component)
          バインディングタイプ定義に基づいて、 componentに対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。
protected  boolean bindAuto(ComponentDef componentDef, Field field, Object component)
           
protected  boolean bindAuto(ComponentDef componentDef, PropertyDesc propertyDesc, Object component)
           
protected  void bindManual(ComponentDef componentDef, PropertyDef propertyDef, Field field, Object component)
           
protected  void bindManual(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, Object component)
           
protected abstract  void doBind(ComponentDef componentDef, Field field, Object component)
           
protected abstract  void doBind(ComponentDef componentDef, PropertyDesc propertyDesc, Object component)
           
 boolean equals(Object o)
           
 String getName()
          バインディングタイプ定義名を返します。
protected  Object getValue(ComponentDef componentDef, Object key, Object component, String propertyName)
           
protected  Object getValue(ComponentDef componentDef, PropertyDef propertyDef, Object component)
           
 int hashCode()
           
protected  void setValue(ComponentDef componentDef, Field field, Object component, Object value)
           
protected  void setValue(ComponentDef componentDef, PropertyDesc propertyDesc, Object component, Object value)
           
 
クラス java.lang.Object から継承したメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractBindingTypeDef

protected AbstractBindingTypeDef(String name)
メソッドの詳細

getName

public String getName()
インタフェース BindingTypeDef の記述:
バインディングタイプ定義名を返します。

定義:
インタフェース BindingTypeDef 内の getName
戻り値:
バインディングタイプ定義名

equals

public boolean equals(Object o)

hashCode

public int hashCode()

bind

public void bind(ComponentDef componentDef,
                 PropertyDef propertyDef,
                 PropertyDesc propertyDesc,
                 Object component)
インタフェース BindingTypeDef の記述:
バインディングタイプ定義に基づいて、 componentに対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。

定義:
インタフェース BindingTypeDef 内の bind
パラメータ:
componentDef - コンポーネント定義
propertyDef - プロパティに対する設定方法や設定値の定義
propertyDesc - 対象となるコンポーネントのプロパティ情報
component - 対象となるコンポーネントのインスタンス

bind

public void bind(ComponentDef componentDef,
                 PropertyDef propertyDef,
                 Field field,
                 Object component)
インタフェース BindingTypeDef の記述:
バインディングタイプ定義に基づいて、 componentに対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。

定義:
インタフェース BindingTypeDef 内の bind
パラメータ:
componentDef - コンポーネント定義
propertyDef - プロパティに対する設定方法や設定値の定義
field - 対象となるコンポーネントのフィールド情報
component - 対象となるコンポーネントのインスタンス

bindManual

protected void bindManual(ComponentDef componentDef,
                          PropertyDef propertyDef,
                          Field field,
                          Object component)

bindManual

protected void bindManual(ComponentDef componentDef,
                          PropertyDef propertyDef,
                          PropertyDesc propertyDesc,
                          Object component)

bindAuto

protected boolean bindAuto(ComponentDef componentDef,
                           Field field,
                           Object component)

bindAuto

protected boolean bindAuto(ComponentDef componentDef,
                           PropertyDesc propertyDesc,
                           Object component)

getValue

protected Object getValue(ComponentDef componentDef,
                          PropertyDef propertyDef,
                          Object component)

getValue

protected Object getValue(ComponentDef componentDef,
                          Object key,
                          Object component,
                          String propertyName)

setValue

protected void setValue(ComponentDef componentDef,
                        PropertyDesc propertyDesc,
                        Object component,
                        Object value)
                 throws IllegalPropertyRuntimeException
例外:
IllegalPropertyRuntimeException

setValue

protected void setValue(ComponentDef componentDef,
                        Field field,
                        Object component,
                        Object value)
                 throws IllegalPropertyRuntimeException
例外:
IllegalPropertyRuntimeException

doBind

protected abstract void doBind(ComponentDef componentDef,
                               PropertyDesc propertyDesc,
                               Object component)

doBind

protected abstract void doBind(ComponentDef componentDef,
                               Field field,
                               Object component)


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