public abstract class AbstractBindingTypeDef extends Object implements BindingTypeDef
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
name |
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 |
bindAutoProperty(ComponentDef componentDef,
PropertyDesc propertyDesc,
Object component) |
protected boolean |
bindAutoResourceField(ComponentDef componentDef,
Field field,
Object component) |
protected void |
bindManualProperty(ComponentDef componentDef,
PropertyDef propertyDef,
PropertyDesc propertyDesc,
Object component) |
protected void |
bindManualResourceField(ComponentDef componentDef,
PropertyDef propertyDef,
Field field,
Object component) |
protected abstract void |
doBindProperty(ComponentDef componentDef,
PropertyDesc propertyDesc,
Object component) |
protected abstract void |
doBindResourceField(ComponentDef componentDef,
Field field,
Object component) |
boolean |
equals(Object o) |
protected Object |
getComponent(ComponentDef componentDef,
Object key,
Object component,
String propertyName) |
String |
getName()
バインディングタイプ定義名を返します。
|
protected Object |
getValue(ComponentDef componentDef,
PropertyDef propertyDef,
Object component,
Class<?> resultType) |
int |
hashCode() |
protected boolean |
isAutoBindable(String propertyName,
Class<?> propertyType,
ComponentDef cd) |
protected boolean |
isFieldAutoBindable(Class<?> clazz) |
protected boolean |
isPropertyAutoBindable(Class<?> clazz) |
protected void |
setPropertyValue(ComponentDef componentDef,
PropertyDesc propertyDesc,
Object component,
Object value) |
protected void |
setResourceFieldValue(ComponentDef componentDef,
Field field,
Object component,
Object value) |
protected void |
throwPropertyComponentGetFailureException(ComponentDef componentDef,
Object key,
Object component,
String propertyName,
RuntimeException cause) |
protected void |
throwPropertyValueGetFailureException(ComponentDef componentDef,
PropertyDef propertyDef,
Object component,
RuntimeException cause) |
protected final String name
protected AbstractBindingTypeDef(String name)
public void bind(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, Object component)
BindingTypeDefcomponentに対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。bind インタフェース内 BindingTypeDefcomponentDef - コンポーネント定義propertyDef - プロパティに対する設定方法や設定値の定義propertyDesc - 対象となるコンポーネントのプロパティ情報component - 対象となるコンポーネントのインスタンスprotected void bindManualProperty(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, Object component)
protected boolean bindAutoProperty(ComponentDef componentDef, PropertyDesc propertyDesc, Object component)
protected boolean isPropertyAutoBindable(Class<?> clazz)
protected void setPropertyValue(ComponentDef componentDef, PropertyDesc propertyDesc, Object component, Object value) throws IllegalPropertyRuntimeException
protected abstract void doBindProperty(ComponentDef componentDef, PropertyDesc propertyDesc, Object component)
public void bind(ComponentDef componentDef, PropertyDef propertyDef, Field field, Object component)
BindingTypeDefcomponentに対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。bind インタフェース内 BindingTypeDefcomponentDef - コンポーネント定義propertyDef - プロパティに対する設定方法や設定値の定義field - 対象となるコンポーネントのフィールド情報component - 対象となるコンポーネントのインスタンスprotected void bindManualResourceField(ComponentDef componentDef, PropertyDef propertyDef, Field field, Object component)
protected boolean bindAutoResourceField(ComponentDef componentDef, Field field, Object component)
protected boolean isFieldAutoBindable(Class<?> clazz)
protected void setResourceFieldValue(ComponentDef componentDef, Field field, Object component, Object value) throws IllegalPropertyRuntimeException
protected abstract void doBindResourceField(ComponentDef componentDef, Field field, Object component)
protected boolean isAutoBindable(String propertyName, Class<?> propertyType, ComponentDef cd)
protected Object getValue(ComponentDef componentDef, PropertyDef propertyDef, Object component, Class<?> resultType) throws IllegalPropertyRuntimeException
protected void throwPropertyValueGetFailureException(ComponentDef componentDef, PropertyDef propertyDef, Object component, RuntimeException cause)
protected Object getComponent(ComponentDef componentDef, Object key, Object component, String propertyName) throws IllegalPropertyRuntimeException
protected void throwPropertyComponentGetFailureException(ComponentDef componentDef, Object key, Object component, String propertyName, RuntimeException cause)
public String getName()
BindingTypeDefgetName インタフェース内 BindingTypeDefCopyright © 2015 The DBFlute Project. All rights reserved.