类 JCacheOperationSourcePointcut
- java.lang.Object
- org.springframework.aop.support.StaticMethodMatcher
- org.springframework.aop.support.StaticMethodMatcherPointcut
- org.springframework.cache.jcache.interceptor.JCacheOperationSourcePointcut
- 所有已实现的接口:
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.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
- 序列化表格
字段概要
从接口继承的字段 org.springframework.aop.MethodMatcher
TRUE
构造器概要
构造器 构造器 说明 JCacheOperationSourcePointcut()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 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()
从类继承的方法 org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
从类继承的方法 org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
构造器详细资料
JCacheOperationSourcePointcut
public JCacheOperationSourcePointcut()
方法详细资料
matches
public boolean matches(Method method, Class<?> targetClass)
从接口复制的说明: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.- 指定者:
matches
在接口中MethodMatcher
- 参数:
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)- 返回:
- whether or not this method matches statically
getCacheOperationSource
protected abstract JCacheOperationSource getCacheOperationSource()
Obtain the underlyingJCacheOperationSource
(may benull
). To be implemented by subclasses.