@FunctionalInterface public interface ClassFilter
Can be used as part of a Pointcut
or for the entire
targeting of an IntroductionAdvisor
.
Concrete implementations of this interface typically should provide proper
implementations of Object.equals(Object)
and Object.hashCode()
in order to allow the filter to be used in caching scenarios — for
example, in proxies generated by CGLIB.
Pointcut
,
MethodMatcher
Modifier and Type | Field and Description |
---|---|
static ClassFilter |
TRUE
Canonical instance of a ClassFilter that matches all classes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Class<?> clazz)
Should the pointcut apply to the given interface or target class?
|
static final ClassFilter TRUE
boolean matches(Class<?> clazz)
clazz
- the candidate target class