Class JCacheOperationSourcePointcut
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.cache.jcache.interceptor.JCacheOperationSourcePointcut
- All Implemented Interfaces:
Serializable
,MethodMatcher
,Pointcut
public abstract class JCacheOperationSourcePointcut
extends StaticMethodMatcherPointcut
implements Serializable
A Pointcut that matches if the underlying
JCacheOperationSource
has an operation for a given method.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract JCacheOperationSource
Obtain the underlyingJCacheOperationSource
(may benull
).int
hashCode()
boolean
Perform static checking whether the given method matches.toString()
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
-
Constructor Details
-
JCacheOperationSourcePointcut
public JCacheOperationSourcePointcut()
-
-
Method Details
-
matches
Description copied from interface:MethodMatcher
Perform static checking whether the given method matches.If this returns
false
or if theMethodMatcher.isRuntime()
method returnsfalse
, no runtime check (i.e. noMethodMatcher.matches(java.lang.reflect.Method, Class, Object[])
call) will be made.- Specified by:
matches
in interfaceMethodMatcher
- Parameters:
method
- the candidate methodtargetClass
- the target class- Returns:
- whether this method matches statically
-
getCacheOperationSource
Obtain the underlyingJCacheOperationSource
(may benull
). To be implemented by subclasses. -
equals
-
hashCode
public int hashCode() -
toString
-