org.seasar.cubby.customizer
クラス ActionMethodCustomizer

java.lang.Object
  上位を拡張 org.seasar.framework.container.customizer.AbstractCustomizer
      上位を拡張 org.seasar.framework.container.customizer.AspectCustomizer
          上位を拡張 org.seasar.cubby.customizer.ActionMethodCustomizer
すべての実装されたインタフェース:
ComponentCustomizer

public class ActionMethodCustomizer
extends AspectCustomizer

コンポーネント定義アスペクト定義を 登録するコンポーネントカスタマイザです。

カスタマイザには、ポイントカットとインターセプタを設定します。 インターセプタはコンポーネント名で指定し、複数のインターセプタ名を設定することができます。 インターセプタ名が複数設定された場合は、設定された順にアスペクト定義をコンポーネント定義に登録します。 最初に設定された名前を持つインターセプタが、後に設定された名前を持つインターセプタよりも先に呼び出されることになります。

コンポーネントに適用するインターセプタのインスタンス属性がsingleton以外の場合は、 useLookupAdapterプロパティをtrueに設定します。 これにより、コンポーネントのメソッドが呼び出される度に、コンテナからインターセプタのインスタンスをルックアップするようになります。

導入されたバージョン:
1.0.0
作成者:
baba

入れ子のクラスの概要
 
クラス org.seasar.framework.container.customizer.AspectCustomizer から継承された入れ子のクラス/インタフェース
AspectCustomizer.LookupAdaptorInterceptor
 
フィールドの概要
 
クラス org.seasar.framework.container.customizer.AspectCustomizer から継承されたフィールド
interceptorName_BINDING, pointcut_BINDING, useLookupAdapter_BINDING
 
クラス org.seasar.framework.container.customizer.AbstractCustomizer から継承されたフィールド
classPatterns, ignoreClassPatterns, targetInterface, targetInterface_BINDING
 
コンストラクタの概要
ActionMethodCustomizer()
           
 
メソッドの概要
protected  Pointcut createPointcut()
          ポイントカットを作成して返します。
 void setPointcut(String pointcut)
          コンポーネント定義に登録するアスペクト定義のポイントカットを設定します。
 
クラス org.seasar.framework.container.customizer.AspectCustomizer から継承されたメソッド
addInterceptorName, doCustomize, setInterceptorName, setUseLookupAdapter
 
クラス org.seasar.framework.container.customizer.AbstractCustomizer から継承されたメソッド
addClassPattern, addClassPattern, addIgnoreClassPattern, addIgnoreClassPattern, customize, isMatchClassPattern, isMatchTargetInterface, setTargetInterface
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ActionMethodCustomizer

public ActionMethodCustomizer()
メソッドの詳細

setPointcut

public void setPointcut(String pointcut)
コンポーネント定義に登録するアスペクト定義のポイントカットを設定します。

オーバーライド:
クラス AspectCustomizer 内の setPointcut
パラメータ:
pointcut - ポイントカット

createPointcut

protected Pointcut createPointcut()
ポイントカットを作成して返します。

pointcutプロパティが指定されている場合は、その文字列からポイントカットを作成します。 targetInterfaceプロパティが指定されている場合は、そのインターフェースからポイントカットを作成します。 それ以外の場合はnullを返します。

オーバーライド:
クラス AspectCustomizer 内の createPointcut
戻り値:
ポイントカット


Copyright © 2006-2009 The Seasar Foundation. All Rights Reserved.