open class ComposablePointcut : Pointcut, Serializable
Convenient class for building up pointcuts. All methods return ComposablePointcut, so we can use a concise idiom like: Pointcut pc = new ComposablePointcut().union(classFilter).intersection(methodMatcher).intersection(pointcut);
Author
Rod Johnson
Author
Juergen Hoeller
Author
Rob Harrop
Since
11.11.2003
See Also
Pointcuts
ComposablePointcut()
Create a default ComposablePointcut, with ComposablePointcut(pointcut: Pointcut)
Create a ComposablePointcut based on the given Pointcut. ComposablePointcut(classFilter: ClassFilter)
Create a ComposablePointcut for the given ClassFilter, with ComposablePointcut(methodMatcher: MethodMatcher)
Create a ComposablePointcut for the given MethodMatcher, with ComposablePointcut(classFilter: ClassFilter, methodMatcher: MethodMatcher)
Create a ComposablePointcut for the given ClassFilter and MethodMatcher. |
open fun equals(other: Any?): Boolean |
|
open fun getClassFilter(): ClassFilter |
|
open fun getMethodMatcher(): MethodMatcher |
|
open fun hashCode(): Int |
|
open fun intersection(other: ClassFilter): ComposablePointcut
Apply an intersection with the given ClassFilter. open fun intersection(other: MethodMatcher): ComposablePointcut
Apply an intersection with the given MethodMatcher. open fun intersection(other: Pointcut): ComposablePointcut
Apply an intersection with the given Pointcut. |
|
open fun toString(): String |
|
open fun union(other: ClassFilter): ComposablePointcut
Apply a union with the given ClassFilter. open fun union(other: MethodMatcher): ComposablePointcut
Apply a union with the given MethodMatcher. open fun union(other: Pointcut): ComposablePointcut
Apply a union with the given Pointcut. Note that for a Pointcut union, methods will only match if their original ClassFilter (from the originating Pointcut) matches as well. MethodMatchers and ClassFilters from different Pointcuts will never get interleaved with each other. |