spring-framework / org.springframework.aop.support / ControlFlowPointcut

ControlFlowPointcut

open class ControlFlowPointcut : Pointcut, ClassFilter, MethodMatcher, Serializable

Pointcut and method matcher for use in simple cflow-style pointcut. Note that evaluating such pointcuts is 10-15 times slower than evaluating normal pointcuts, but they are useful in some cases.

Author
Rod Johnson

Author
Rob Harrop

Author
Juergen Hoeller

Constructors

<init>

ControlFlowPointcut(clazz: Class<*>)

Construct a new pointcut that matches all control flows below that class.

ControlFlowPointcut(clazz: Class<*>, methodName: String)

Construct a new pointcut that matches all calls below the given method in the given class. If no method name is given, matches all control flows below the given class.

Functions

equals

open fun equals(other: Any?): Boolean

getClassFilter

open fun getClassFilter(): ClassFilter

getEvaluations

open fun getEvaluations(): Int

It's useful to know how many times we've fired, for optimization.

getMethodMatcher

open fun getMethodMatcher(): MethodMatcher

hashCode

open fun hashCode(): Int

isRuntime

open fun isRuntime(): Boolean

matches

open fun matches(clazz: Class<*>): Boolean

Subclasses can override this for greater filtering (and performance).

open fun matches(method: Method, targetClass: Class<*>): Boolean

Subclasses can override this if it's possible to filter out some candidate classes.

open fun matches(method: Method, targetClass: Class<*>, vararg args: Any): Boolean