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 underlyingJCacheOperationSourcehas an operation for a given method.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
- Serialized Form
Field Summary
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
Constructor Summary
Constructors Constructor Description JCacheOperationSourcePointcut()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)protected abstract JCacheOperationSourcegetCacheOperationSource()Obtain the underlyingJCacheOperationSource(may benull).inthashCode()booleanmatches(Method method, Class<?> targetClass)Perform static checking whether the given method matches.StringtoString()Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
Constructor Detail
JCacheOperationSourcePointcut
public JCacheOperationSourcePointcut()
Method Detail
matches
public boolean matches(Method method, Class<?> targetClass)
Description copied from interface:MethodMatcherPerform static checking whether the given method matches.If this returns
falseor if theMethodMatcher.isRuntime()method returnsfalse, no runtime check (i.e. noMethodMatcher.matches(java.lang.reflect.Method, Class, Object[])call) will be made.- Specified by:
matchesin interfaceMethodMatcher- Parameters:
method- the candidate methodtargetClass- the target class (may benull, in which case the candidate class must be taken to be the method's declaring class)- Returns:
- whether or not this method matches statically
getCacheOperationSource
protected abstract JCacheOperationSource getCacheOperationSource()
Obtain the underlyingJCacheOperationSource(may benull). To be implemented by subclasses.