public interface BindingTypeDef
バインディングタイプ定義には、 以下のものがあります。
mustshouldmaynone自動バインディングタイプ定義がautoやpropertyの場合でも自動バインディングを適用しません。| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
MAY_NAME
バインディングタイプ定義名「
may」を表す定数です。 |
static String |
MUST_NAME
バインディングタイプ定義名「
must」を表す定数です。 |
static String |
NONE_NAME
バインディングタイプ定義名「
none」を表す定数です。 |
static String |
SHOULD_NAME
バインディングタイプ定義名「
should」を表す定数です。 |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
bind(ComponentDef componentDef,
PropertyDef propertyDef,
Field field,
Object component)
バインディングタイプ定義に基づいて、
componentに対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。 |
void |
bind(ComponentDef componentDef,
PropertyDef propertyDef,
PropertyDesc propertyDesc,
Object component)
バインディングタイプ定義に基づいて、
componentに対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。 |
String |
getName()
バインディングタイプ定義名を返します。
|
String getName()
void bind(ComponentDef componentDef, PropertyDef propertyDef, PropertyDesc propertyDesc, Object component)
componentに対してS2コンテナ上のコンポーネントをプロパティ経由でインジェクションします。componentDef - コンポーネント定義propertyDef - プロパティに対する設定方法や設定値の定義propertyDesc - 対象となるコンポーネントのプロパティ情報component - 対象となるコンポーネントのインスタンスIllegalPropertyRuntimeException - propertyDefに指定されたコンポーネントが取得できなかった場合、
または取得したコンポーネントがインジェクションできなかった場合void bind(ComponentDef componentDef, PropertyDef propertyDef, Field field, Object component)
componentに対してS2コンテナ上のコンポーネントをフィールドに直接インジェクションします。componentDef - コンポーネント定義propertyDef - プロパティに対する設定方法や設定値の定義field - 対象となるコンポーネントのフィールド情報component - 対象となるコンポーネントのインスタンスIllegalPropertyRuntimeException - propertyDefに指定されたコンポーネントが取得できなかった場合IllegalAccessRuntimeException - 対象となるコンポーネントのフィールドがprivateなどでアクセスできなかった場合Copyright © 2015 The DBFlute Project. All rights reserved.