org.seasar.framework.container.factory
クラス AbstractAnnotationHandler

java.lang.Object
  拡張org.seasar.framework.container.factory.AbstractAnnotationHandler
すべての実装インタフェース:
AnnotationHandler
直系の既知のサブクラス:
ConstantAnnotationHandler

public abstract class AbstractAnnotationHandler
extends Object
implements AnnotationHandler


フィールドの概要
protected static String ASPECT
           
protected static String AUTO_BINDING
           
protected static String BINDING_SUFFIX
           
protected static String BINDING_TYPE
           
protected static String COMPONENT
           
protected static String DESTROY_METHOD
           
protected static String EXTERNAL_BINDING
           
protected static String INIT_METHOD
           
protected static String INSTANCE
           
protected static String INTER_TYPE
           
protected static String INTERCEPTOR
           
protected static String NAME
           
protected static String POINTCUT
           
protected static String VALUE
           
 
コンストラクタの概要
AbstractAnnotationHandler()
           
 
メソッドの概要
 void appendDI(ComponentDef componentDef)
          コンポーネント定義にプロパティ定義を追加します。
 ComponentDef createComponentDef(Class componentClass, InstanceDef instanceDef)
          コンポーネント名、インスタンス定義を指定してコンポーネント定義を作成します。
 ComponentDef createComponentDef(Class componentClass, InstanceDef instanceDef, AutoBindingDef autoBindingDef)
          コンポーネントクラス、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。
protected  ComponentDef createComponentDef(Class componentClass, String name, InstanceDef instanceDef, AutoBindingDef autoBindingDef, boolean externalBinding)
           
 ComponentDef createComponentDef(String className, InstanceDef instanceDef)
          クラス名、インスタンス定義を指定してコンポーネント定義を作成します。
 ComponentDef createComponentDef(String className, InstanceDef instanceDef, AutoBindingDef autoBindingDef)
          クラス名、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。
 ComponentDef createComponentDef(String className, InstanceDef instanceDef, AutoBindingDef autoBindingDef, boolean externalBinding)
          クラス名、インスタンス定義、自動バインディング定義、外部バインディングの有無を指定してコンポーネント定義を作成します。
protected  PropertyDef createPropertyDef(String propertyName, String expression, String bindingTypeName, String accessTypeName)
           
protected  AutoBindingDef getAutoBindingDef(String name)
           
protected  InstanceDef getInstanceDef(String name)
           
protected  InstanceDef getInstanceDef(String name, InstanceDef defaultInstanceDef)
           
 boolean isDestroyMethodRegisterable(ComponentDef cd, String methodName)
          コンポーネント定義にdestroyメソッドが追加可能かどうかを返します。
protected  boolean isFieldInjectionTarget(Field field)
           
 boolean isInitMethodRegisterable(ComponentDef cd, String methodName)
          コンポーネント定義に初期化メソッドが追加可能かどうかを返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.framework.container.factory.AnnotationHandler から継承したメソッド
appendAspect, appendDestroyMethod, appendInitMethod, appendInterType, createComponentDef, createPropertyDef, createPropertyDef
 

フィールドの詳細

COMPONENT

protected static final String COMPONENT
関連項目:
定数フィールド値

NAME

protected static final String NAME
関連項目:
定数フィールド値

INSTANCE

protected static final String INSTANCE
関連項目:
定数フィールド値

AUTO_BINDING

protected static final String AUTO_BINDING
関連項目:
定数フィールド値

BINDING_SUFFIX

protected static final String BINDING_SUFFIX
関連項目:
定数フィールド値

BINDING_TYPE

protected static final String BINDING_TYPE
関連項目:
定数フィールド値

EXTERNAL_BINDING

protected static final String EXTERNAL_BINDING
関連項目:
定数フィールド値

VALUE

protected static final String VALUE
関連項目:
定数フィールド値

ASPECT

protected static final String ASPECT
関連項目:
定数フィールド値

INTER_TYPE

protected static final String INTER_TYPE
関連項目:
定数フィールド値

INIT_METHOD

protected static final String INIT_METHOD
関連項目:
定数フィールド値

DESTROY_METHOD

protected static final String DESTROY_METHOD
関連項目:
定数フィールド値

INTERCEPTOR

protected static final String INTERCEPTOR
関連項目:
定数フィールド値

POINTCUT

protected static final String POINTCUT
関連項目:
定数フィールド値
コンストラクタの詳細

AbstractAnnotationHandler

public AbstractAnnotationHandler()
メソッドの詳細

createComponentDef

public ComponentDef createComponentDef(String className,
                                       InstanceDef instanceDef)
インタフェース AnnotationHandler の記述:
クラス名、インスタンス定義を指定してコンポーネント定義を作成します。

定義:
インタフェース AnnotationHandler 内の createComponentDef
パラメータ:
className - クラス名
instanceDef - インスタンス定義
戻り値:
コンポーネント定義

createComponentDef

public ComponentDef createComponentDef(String className,
                                       InstanceDef instanceDef,
                                       AutoBindingDef autoBindingDef)
インタフェース AnnotationHandler の記述:
クラス名、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。

定義:
インタフェース AnnotationHandler 内の createComponentDef
パラメータ:
className - クラス名
instanceDef - インスタンス定義
autoBindingDef - 自動バインディング定義
戻り値:
コンポーネント定義

createComponentDef

public ComponentDef createComponentDef(String className,
                                       InstanceDef instanceDef,
                                       AutoBindingDef autoBindingDef,
                                       boolean externalBinding)
インタフェース AnnotationHandler の記述:
クラス名、インスタンス定義、自動バインディング定義、外部バインディングの有無を指定してコンポーネント定義を作成します。

定義:
インタフェース AnnotationHandler 内の createComponentDef
パラメータ:
className - クラス名
instanceDef - インスタンス定義
autoBindingDef - 自動バインディング定義
externalBinding - 外部バインディングの有無
戻り値:
コンポーネント定義

createComponentDef

public ComponentDef createComponentDef(Class componentClass,
                                       InstanceDef instanceDef)
インタフェース AnnotationHandler の記述:
コンポーネント名、インスタンス定義を指定してコンポーネント定義を作成します。

定義:
インタフェース AnnotationHandler 内の createComponentDef
パラメータ:
componentClass - コンポーネントクラス
instanceDef - インスタンス定義
戻り値:
コンポーネント定義

createComponentDef

public ComponentDef createComponentDef(Class componentClass,
                                       InstanceDef instanceDef,
                                       AutoBindingDef autoBindingDef)
インタフェース AnnotationHandler の記述:
コンポーネントクラス、インスタンス定義、自動バインディング定義を指定してコンポーネント定義を作成します。

定義:
インタフェース AnnotationHandler 内の createComponentDef
パラメータ:
componentClass - コンポーネントクラス
instanceDef - インスタンス定義
autoBindingDef - 自動バインディング定義
戻り値:
コンポーネント定義

appendDI

public void appendDI(ComponentDef componentDef)
インタフェース AnnotationHandler の記述:
コンポーネント定義にプロパティ定義を追加します。

定義:
インタフェース AnnotationHandler 内の appendDI
パラメータ:
componentDef - コンポーネント定義

getInstanceDef

protected InstanceDef getInstanceDef(String name,
                                     InstanceDef defaultInstanceDef)

getInstanceDef

protected InstanceDef getInstanceDef(String name)

getAutoBindingDef

protected AutoBindingDef getAutoBindingDef(String name)

createComponentDef

protected ComponentDef createComponentDef(Class componentClass,
                                          String name,
                                          InstanceDef instanceDef,
                                          AutoBindingDef autoBindingDef,
                                          boolean externalBinding)

createPropertyDef

protected PropertyDef createPropertyDef(String propertyName,
                                        String expression,
                                        String bindingTypeName,
                                        String accessTypeName)

isInitMethodRegisterable

public boolean isInitMethodRegisterable(ComponentDef cd,
                                        String methodName)
インタフェース AnnotationHandler の記述:
コンポーネント定義に初期化メソッドが追加可能かどうかを返します。

定義:
インタフェース AnnotationHandler 内の isInitMethodRegisterable
パラメータ:
cd - コンポーネント定義
methodName - 初期化の対象にするメソッド名
戻り値:
初期化メソッドとして追加可能な場合、true、そうでない場合はfalseを返す。

isDestroyMethodRegisterable

public boolean isDestroyMethodRegisterable(ComponentDef cd,
                                           String methodName)
インタフェース AnnotationHandler の記述:
コンポーネント定義にdestroyメソッドが追加可能かどうかを返します。

定義:
インタフェース AnnotationHandler 内の isDestroyMethodRegisterable
パラメータ:
cd - コンポーネント定義
methodName - 初期化の対象にするメソッド名
戻り値:
destroyMethodとして追加可能な場合、true、そうでない場合はfalseを返す。

isFieldInjectionTarget

protected boolean isFieldInjectionTarget(Field field)


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.