abstract class CacheOperationSourcePointcut extends StaticMethodMatcherPointcut implements java.io.Serializable
CacheOperationSource
has an attribute for a given method.TRUE
Constructor and Description |
---|
CacheOperationSourcePointcut() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
protected abstract CacheOperationSource |
getCacheOperationSource()
Obtain the underlying
CacheOperationSource (may be null ). |
int |
hashCode() |
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass)
Perform static checking whether the given method matches.
|
java.lang.String |
toString() |
getClassFilter, getMethodMatcher, setClassFilter
isRuntime, matches
public boolean matches(java.lang.reflect.Method method, @Nullable java.lang.Class<?> targetClass)
MethodMatcher
If this returns false
or if the MethodMatcher.isRuntime()
method returns false
, no runtime check (i.e. no
MethodMatcher.matches(java.lang.reflect.Method, Class, Object[])
call)
will be made.
matches
in interface MethodMatcher
method
- the candidate methodtargetClass
- the target class (may be null
, in which case
the candidate class must be taken to be the method's declaring class)public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Nullable protected abstract CacheOperationSource getCacheOperationSource()
CacheOperationSource
(may be null
).
To be implemented by subclasses.