abstract class CacheOperationSourcePointcut extends StaticMethodMatcherPointcut implements java.io.Serializable
CacheOperationSource
has an attribute for a given method.Modifier and Type | Class and Description |
---|---|
private class |
CacheOperationSourcePointcut.CacheOperationSourceClassFilter
ClassFilter that delegates to CacheOperationSource.isCandidateClass(java.lang.Class<?>)
for filtering classes whose methods are not worth searching to begin with. |
TRUE
Modifier | Constructor and Description |
---|---|
protected |
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, 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 classpublic 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.