クラス ComposablePointcut
java.lang.ObjectSE
org.springframework.aop.support.ComposablePointcut
- 実装されているすべてのインターフェース:
SerializableSE,Pointcut
ポイントカットを構築するための便利なクラス。
すべてのメソッドが ComposablePointcut を返すため、次の例のように簡潔なイディオムを使用できます。
Pointcut pc = new ComposablePointcut()
.union(classFilter)
.intersection(methodMatcher)
.intersection(pointcut);フィールドのサマリー
コンストラクターの概要
コンストラクターコンストラクター説明ClassFilter.TRUEおよびMethodMatcher.TRUEを使用して、デフォルトの ComposablePointcut を作成します。ComposablePointcut(ClassFilter classFilter) MethodMatcher.TRUEを使用して、指定された ClassFilter の ComposablePointcut を作成します。ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher) 指定された ClassFilter および MethodMatcher の ComposablePointcut を作成します。ComposablePointcut(MethodMatcher methodMatcher) ClassFilter.TRUEを使用して、指定された MethodMatcher の ComposablePointcut を作成します。ComposablePointcut(Pointcut pointcut) 指定されたポイントカットに基づいて ComposablePointcut を作成します。メソッドのサマリー
修飾子と型メソッド説明booleanこのポイントカットの ClassFilter を返します。このポイントカットの MethodMatcher を返します。inthashCode()intersection(ClassFilter other) 指定された ClassFilter との交差を適用します。intersection(MethodMatcher other) 指定された MethodMatcher との交差を適用します。intersection(Pointcut other) 指定されたポイントカットとの交差を適用します。toString()union(ClassFilter other) 与えられた ClassFilter でユニオンを適用します。union(MethodMatcher other) 与えられた MethodMatcher でユニオンを適用します。与えられたポイントカットでユニオンを適用します。
コンストラクターの詳細
ComposablePointcut
public ComposablePointcut()ClassFilter.TRUEおよびMethodMatcher.TRUEを使用して、デフォルトの ComposablePointcut を作成します。ComposablePointcut
指定されたポイントカットに基づいて ComposablePointcut を作成します。- パラメーター:
pointcut- オリジナルのポイントカット
ComposablePointcut
MethodMatcher.TRUEを使用して、指定された ClassFilter の ComposablePointcut を作成します。- パラメーター:
classFilter- 使用する ClassFilter
ComposablePointcut
ClassFilter.TRUEを使用して、指定された MethodMatcher の ComposablePointcut を作成します。- パラメーター:
methodMatcher- 使用する MethodMatcher
ComposablePointcut
指定された ClassFilter および MethodMatcher の ComposablePointcut を作成します。- パラメーター:
classFilter- 使用する ClassFiltermethodMatcher- 使用する MethodMatcher
メソッドの詳細
union
与えられた ClassFilter でユニオンを適用します。- パラメーター:
other- ユニオンを適用する ClassFilter- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
intersection
指定された ClassFilter との交差を適用します。- パラメーター:
other- 交差を適用する ClassFilter- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
union
与えられた MethodMatcher でユニオンを適用します。- パラメーター:
other- ユニオンを適用する MethodMatcher- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
intersection
指定された MethodMatcher との交差を適用します。- パラメーター:
other- 交差を適用する MethodMatcher- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
union
与えられたポイントカットでユニオンを適用します。ポイントカットユニオンの場合、メソッドは元のポイントカットからの元の ClassFilter も一致する場合にのみ一致することに注意してください。異なるポイントカットの MethodMatchers と ClassFilters が相互にインターリーブされることはありません。
- パラメーター:
other- ユニオンを適用するポイントカット- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
intersection
指定されたポイントカットとの交差を適用します。- パラメーター:
other- 交差を適用するポイントカット- 戻り値:
- この構成可能なポイントカット (コールチェーン用)
getClassFilter
インターフェースからコピーされた説明:Pointcutこのポイントカットの ClassFilter を返します。- 次で指定:
- インターフェース
PointcutのgetClassFilter - 戻り値:
- ClassFilter (非
null)
getMethodMatcher
インターフェースからコピーされた説明:Pointcutこのポイントカットの MethodMatcher を返します。- 次で指定:
- インターフェース
PointcutのgetMethodMatcher - 戻り値:
- MethodMatcher (非
null)
equals
hashCode
public int hashCode()toString