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

Pointcuts

abstract class Pointcuts

Pointcut constants for matching getters and setters, and static methods useful for manipulating and evaluating pointcuts. These methods are particularly useful for composing pointcuts using the union and intersection methods.

Author
Rod Johnson

Author
Juergen Hoeller

Constructors

<init>

Pointcuts()

Pointcut constants for matching getters and setters, and static methods useful for manipulating and evaluating pointcuts. These methods are particularly useful for composing pointcuts using the union and intersection methods.

Properties

GETTERS

static val GETTERS: Pointcut

Pointcut matching all bean property getters, in any class

SETTERS

static val SETTERS: Pointcut

Pointcut matching all bean property setters, in any class

Functions

intersection

open static fun intersection(pc1: Pointcut, pc2: Pointcut): Pointcut

Match all methods that both the given pointcuts match.

matches

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

Perform the least expensive check for a pointcut match.

union

open static fun union(pc1: Pointcut, pc2: Pointcut): Pointcut

Match all methods that either (or both) of the given pointcuts matches.