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
メソッドの概要 |
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)
|
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.