public interface AspectDef extends ArgDef
1つのコンポーネントに複数のアスペクトを定義することが可能です。 定義した順にアスペクトのインターセプタが実行されます。
S2AOPにおけるインターセプタは、
MethodInterceptorインターフェースを実装したクラスのコンポーネントとして定義します。
インターセプターのセットを、複数のコンポーネントに適用する場合には、 複数のインターセプタを1つのインターセプタ・コンポーネントとして定義できる、
InterceptorChainを使用すると設定を簡略化できます。
S2AOPの詳細についてはSeasar2公式サイトを参照して下さい。
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Aspect |
getAspect()
アスペクトを返します。
|
Pointcut |
getPointcut()
ポイントカットを返します。
|
void |
setPointcut(Pointcut pointcut)
ポイントカットを設定します。
|
getContainer, getExpression, getValue, isValueGettable, setChildComponentDef, setContainer, setExpression, setValueaddMetaDef, getMetaDef, getMetaDef, getMetaDefs, getMetaDefSizeCopyright © 2015 The DBFlute Project. All rights reserved.