|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
クラスに指定されたアノテーションからコンポーネント定義を作成するためのインターフェースです。
このアノテーションにより、コンポーネント名やインスタンス属性, プロパティやアスペクト,初期化メソッド等の設定が可能です。
指定されるの定義の優先度について。
以下の順によって指定された定義が上書きされます。注意してください。
| メソッドの概要 | |
void |
appendAspect(ComponentDef componentDef)
コンポーネント定義にアスペクト定義を追加します。 |
void |
appendDestroyMethod(ComponentDef componentDef)
コンポーネント定義にdestroyMethodを追加します。 |
void |
appendDI(ComponentDef componentDef)
コンポーネント定義にプロパティ定義を追加します。 |
void |
appendInitMethod(ComponentDef componentDef)
コンポーネント定義に初期化メソッドを追加します。 |
void |
appendInterType(ComponentDef componentDef)
コンポーネント定義にインタータイプ定義を追加します。 |
ComponentDef |
createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef)
コンポーネント名、インスタンス定義を指定してコンポーネント定義を作成します。 |
ComponentDef |
createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef)
コンポーネントクラス、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。 |
ComponentDef |
createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef,
boolean externalBinding)
コンポーネントクラス、インスタンス定義、自動バインディング定義、外部バインディングを指定してコンポーネント定義を作成します。 |
ComponentDef |
createComponentDef(java.lang.String className,
InstanceDef instanceDef)
クラス名、インスタンス定義を指定してコンポーネント定義を作成します。 |
ComponentDef |
createComponentDef(java.lang.String className,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef)
クラス名、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。 |
ComponentDef |
createComponentDef(java.lang.String className,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef,
boolean externalBinding)
クラス名、インスタンス定義、自動バインディング定義、外部バインディングの有無を指定してコンポーネント定義を作成します。 |
PropertyDef |
createPropertyDef(BeanDesc beanDesc,
java.lang.reflect.Field field)
フィールドを指定してコンポーネント定義に追加するプロパティ定義を作成します。 |
PropertyDef |
createPropertyDef(BeanDesc beanDesc,
PropertyDesc propertyDesc)
プロパティ名を指定してコンポーネント定義に追加するプロパティ定義を作成します。 |
boolean |
isDestroyMethodRegisterable(ComponentDef cd,
java.lang.String methodName)
コンポーネント定義にdestroyメソッドが追加可能かどうかを返します。 |
boolean |
isInitMethodRegisterable(ComponentDef cd,
java.lang.String methodName)
コンポーネント定義に初期化メソッドが追加可能かどうかを返します。 |
| メソッドの詳細 |
public ComponentDef createComponentDef(java.lang.String className,
InstanceDef instanceDef)
className - クラス名instanceDef - インスタンス定義
public ComponentDef createComponentDef(java.lang.String className,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef)
className - クラス名instanceDef - インスタンス定義autoBindingDef - 自動バインディング定義
public ComponentDef createComponentDef(java.lang.String className,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef,
boolean externalBinding)
className - クラス名instanceDef - インスタンス定義autoBindingDef - 自動バインディング定義externalBinding - 外部バインディングの有無
public ComponentDef createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef)
componentClass - コンポーネントクラスinstanceDef - インスタンス定義
public ComponentDef createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef)
componentClass - コンポーネントクラスinstanceDef - インスタンス定義autoBindingDef - 自動バインディング定義
public ComponentDef createComponentDef(java.lang.Class componentClass,
InstanceDef instanceDef,
AutoBindingDef autoBindingDef,
boolean externalBinding)
componentClass - コンポーネントクラスinstanceDef - インスタンス定義autoBindingDef - 自動バインディング定義externalBinding - 外部バインディング
public void appendDI(ComponentDef componentDef)
componentDef - コンポーネント定義public void appendAspect(ComponentDef componentDef)
componentDef - コンポーネント定義public void appendInterType(ComponentDef componentDef)
componentDef - コンポーネント定義public void appendInitMethod(ComponentDef componentDef)
componentDef - コンポーネント定義
public boolean isInitMethodRegisterable(ComponentDef cd,
java.lang.String methodName)
cd - コンポーネント定義methodName - 初期化の対象にするメソッド名
true、そうでない場合はfalseを返す。public void appendDestroyMethod(ComponentDef componentDef)
componentDef - コンポーネント定義
public boolean isDestroyMethodRegisterable(ComponentDef cd,
java.lang.String methodName)
cd - コンポーネント定義methodName - 初期化の対象にするメソッド名
true、そうでない場合はfalseを返す。
public PropertyDef createPropertyDef(BeanDesc beanDesc,
PropertyDesc propertyDesc)
beanDesc - プロパティに追加するBean名。propertyDesc - プロパティ名
public PropertyDef createPropertyDef(BeanDesc beanDesc,
java.lang.reflect.Field field)
beanDesc - プロパティに追加するBean名。field - フィールド名
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||