|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.container.assembler.AbstractBindingTypeDef
バインディングタイプ定義の抽象クラスです。
フィールドの概要 |
インタフェース org.seasar.framework.container.BindingTypeDef から継承したフィールド |
MAY_NAME, MUST_NAME, NONE_NAME, SHOULD_NAME |
コンストラクタの概要 | |
protected |
AbstractBindingTypeDef(java.lang.String name)
AbstractBindingTypeDef を作成します。 |
メソッドの概要 | |
void |
bind(ComponentDef componentDef,
PropertyDef propertyDef,
java.lang.reflect.Field field,
java.lang.Object component)
バインディングタイプ定義に基づいて、 component に対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。 |
void |
bind(ComponentDef componentDef,
PropertyDef propertyDef,
PropertyDesc propertyDesc,
java.lang.Object component)
バインディングタイプ定義に基づいて、 component に対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。 |
protected boolean |
bindAuto(ComponentDef componentDef,
java.lang.reflect.Field field,
java.lang.Object component)
自動的にオブジェクトを結び付けます。 |
protected boolean |
bindAuto(ComponentDef componentDef,
PropertyDesc propertyDesc,
java.lang.Object component)
自動的にオブジェクトを結び付けます。 |
protected void |
bindManual(ComponentDef componentDef,
PropertyDef propertyDef,
java.lang.reflect.Field field,
java.lang.Object component)
明示的な設定にもとづいてオブジェクトを結び付けます。 |
protected void |
bindManual(ComponentDef componentDef,
PropertyDef propertyDef,
PropertyDesc propertyDesc,
java.lang.Object component)
明示的な設定にもとづいてオブジェクトを結び付けます。 |
protected abstract void |
doBind(ComponentDef componentDef,
java.lang.reflect.Field field,
java.lang.Object component)
オブジェクトを結びつけるためのメソッドです。 |
protected abstract void |
doBind(ComponentDef componentDef,
PropertyDesc propertyDesc,
java.lang.Object component)
オブジェクトを結びつけるためのメソッドです。 |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
バインディングタイプ定義名を返します。 |
protected java.lang.Object |
getValue(ComponentDef componentDef,
java.lang.Object key,
java.lang.Object component,
java.lang.String propertyName)
コンポーネントを返します。 |
protected java.lang.Object |
getValue(ComponentDef componentDef,
PropertyDef propertyDef,
java.lang.Object component)
プロパティの値を返します。 |
int |
hashCode()
|
protected boolean |
isAutoBindable(java.lang.String propertyName,
java.lang.Class propertyType,
ComponentDef cd)
プロパティにコンポーネントを自動バインディング可能なら true を返します。 |
protected void |
setValue(ComponentDef componentDef,
java.lang.reflect.Field field,
java.lang.Object component,
java.lang.Object value)
Field に値を設定します。 |
protected void |
setValue(ComponentDef componentDef,
PropertyDesc propertyDesc,
java.lang.Object component,
java.lang.Object value)
プロパティに値を設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected AbstractBindingTypeDef(java.lang.String name)
AbstractBindingTypeDef
を作成します。
name
- メソッドの詳細 |
public java.lang.String getName()
BindingTypeDef
の記述:
BindingTypeDef
内の getName
public boolean equals(java.lang.Object o)
public int hashCode()
public void bind(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, java.lang.Object component)
BindingTypeDef
の記述: component
に対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。
BindingTypeDef
内の bind
componentDef
- コンポーネント定義propertyDef
- プロパティに対する設定方法や設定値の定義propertyDesc
- 対象となるコンポーネントのプロパティ情報component
- 対象となるコンポーネントのインスタンスpublic void bind(ComponentDef componentDef, PropertyDef propertyDef, java.lang.reflect.Field field, java.lang.Object component)
BindingTypeDef
の記述: component
に対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。
BindingTypeDef
内の bind
componentDef
- コンポーネント定義propertyDef
- プロパティに対する設定方法や設定値の定義field
- 対象となるコンポーネントのフィールド情報component
- 対象となるコンポーネントのインスタンスprotected void bindManual(ComponentDef componentDef, PropertyDef propertyDef, java.lang.reflect.Field field, java.lang.Object component)
componentDef
- propertyDef
- field
- component
- getValue(ComponentDef, PropertyDef, Object)
,
setValue(ComponentDef, Field, Object, Object)
protected void bindManual(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, java.lang.Object component)
componentDef
- propertyDef
- propertyDesc
- component
- getValue(ComponentDef, PropertyDef, Object)
,
setValue(ComponentDef, PropertyDesc, Object, Object)
protected boolean bindAuto(ComponentDef componentDef, java.lang.reflect.Field field, java.lang.Object component)
componentDef
- field
- component
-
getValue(ComponentDef, Object, Object, String)
,
setValue(ComponentDef, Field, Object, Object)
protected boolean bindAuto(ComponentDef componentDef, PropertyDesc propertyDesc, java.lang.Object component)
componentDef
- propertyDesc
- component
-
protected boolean isAutoBindable(java.lang.String propertyName, java.lang.Class propertyType, ComponentDef cd)
true
を返します。
propertyName
- プロパティ名propertyType
- プロパティの型cd
- コンポーネント定義
true
protected java.lang.Object getValue(ComponentDef componentDef, PropertyDef propertyDef, java.lang.Object component) throws IllegalPropertyRuntimeException
componentDef
- propertyDef
- component
-
IllegalPropertyRuntimeException
- RuntimeException
が発生した場合protected java.lang.Object getValue(ComponentDef componentDef, java.lang.Object key, java.lang.Object component, java.lang.String propertyName) throws IllegalPropertyRuntimeException
componentDef
- key
- component
- propertyName
-
IllegalPropertyRuntimeException
- RuntimeException
が発生した場合protected void setValue(ComponentDef componentDef, PropertyDesc propertyDesc, java.lang.Object component, java.lang.Object value) throws IllegalPropertyRuntimeException
componentDef
- propertyDesc
- component
- value
-
IllegalPropertyRuntimeException
- NumberFormatException
が発生した場合protected void setValue(ComponentDef componentDef, java.lang.reflect.Field field, java.lang.Object component, java.lang.Object value) throws IllegalPropertyRuntimeException
Field
に値を設定します。
componentDef
- field
- component
- value
-
IllegalPropertyRuntimeException
- NumberFormatException
が発生した場合protected abstract void doBind(ComponentDef componentDef, PropertyDesc propertyDesc, java.lang.Object component)
componentDef
- propertyDesc
- component
- protected abstract void doBind(ComponentDef componentDef, java.lang.reflect.Field field, java.lang.Object component)
componentDef
- field
- component
-
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |