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 underlyingJCacheOperationSource
has 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 boolean
equals(Object other)
protected abstract JCacheOperationSource
getCacheOperationSource()
Obtain the underlyingJCacheOperationSource
(may benull
).int
hashCode()
boolean
matches(Method method, Class<?> targetClass)
Perform static checking whether the given method matches.String
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 Detail
JCacheOperationSourcePointcut
public JCacheOperationSourcePointcut()
Method Detail
matches
public boolean matches(Method method, Class<?> targetClass)
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 or not this method matches statically
getCacheOperationSource
@Nullable protected abstract JCacheOperationSource getCacheOperationSource()
Obtain the underlyingJCacheOperationSource
(may benull
). To be implemented by subclasses.