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

union

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

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

Parameters

pc1 - the first Pointcut

pc2 - the second Pointcut

Return
a distinct Pointcut that matches all methods that either of the given Pointcuts matches