接口的使用
org.springframework.aop.MethodMatcher
使用MethodMatcher的程序包 程序包 说明 org.springframework.aop Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.org.springframework.aop.aspectj AspectJ integration package.org.springframework.aop.support Convenience classes for using Spring's AOP API.org.springframework.aop.support.annotation Annotation support for AOP pointcuts.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.aop中MethodMatcher的使用
org.springframework.aop中MethodMatcher的子接口 修饰符和类型 接口 说明 interface
IntroductionAwareMethodMatcher
A specialized type ofMethodMatcher
that takes into account introductions when matching methods.声明为MethodMatcher的org.springframework.aop中的字段 修饰符和类型 字段 说明 static MethodMatcher
MethodMatcher. TRUE
Canonical instance that matches all methods.返回MethodMatcher的org.springframework.aop中的方法 修饰符和类型 方法 说明 MethodMatcher
Pointcut. getMethodMatcher()
Return the MethodMatcher for this pointcut.org.springframework.aop.aspectj中MethodMatcher的使用
实现MethodMatcher的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 class
AspectJExpressionPointcut
SpringPointcut
implementation that uses the AspectJ weaver to evaluate a pointcut expression.返回MethodMatcher的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 MethodMatcher
AspectJExpressionPointcut. getMethodMatcher()
org.springframework.aop.support中MethodMatcher的使用
实现MethodMatcher的org.springframework.aop.support中的类 修饰符和类型 类 说明 class
AbstractRegexpMethodPointcut
Abstract base regular expression pointcut bean.class
ControlFlowPointcut
Pointcut and method matcher for use in simple cflow-style pointcut.class
DynamicMethodMatcher
Convenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.class
DynamicMethodMatcherPointcut
Convenient superclass when we want to force subclasses to implement MethodMatcher interface, but subclasses will want to be pointcuts.class
JdkRegexpMethodPointcut
Regular expression pointcut based on thejava.util.regex
package.class
NameMatchMethodPointcut
Pointcut bean for simple method name matches, as an alternative to regexp patterns.class
StaticMethodMatcher
Convenient abstract superclass for static method matchers, which don't care about arguments at runtime.class
StaticMethodMatcherPointcut
Convenient superclass when we want to force subclasses to implement theMethodMatcher
interface but subclasses will want to be pointcuts.class
StaticMethodMatcherPointcutAdvisor
Convenient base class for Advisors that are also static pointcuts.返回MethodMatcher的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 MethodMatcher
ComposablePointcut. getMethodMatcher()
MethodMatcher
ControlFlowPointcut. getMethodMatcher()
MethodMatcher
DynamicMethodMatcherPointcut. getMethodMatcher()
MethodMatcher
StaticMethodMatcherPointcut. getMethodMatcher()
static MethodMatcher
MethodMatchers. intersection(MethodMatcher mm1, MethodMatcher mm2)
Match all methods that both of the given MethodMatchers match.static MethodMatcher
MethodMatchers. union(MethodMatcher mm1, MethodMatcher mm2)
Match all methods that either (or both) of the given MethodMatchers matches.参数类型为MethodMatcher的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 ComposablePointcut
ComposablePointcut. intersection(MethodMatcher other)
Apply an intersection with the given MethodMatcher.static MethodMatcher
MethodMatchers. intersection(MethodMatcher mm1, MethodMatcher mm2)
Match all methods that both of the given MethodMatchers match.static boolean
MethodMatchers. matches(MethodMatcher mm, Method method, Class<?> targetClass, boolean hasIntroductions)
Apply the given MethodMatcher to the given Method, supporting anIntroductionAwareMethodMatcher
(if applicable).ComposablePointcut
ComposablePointcut. union(MethodMatcher other)
Apply a union with the given MethodMatcher.static MethodMatcher
MethodMatchers. union(MethodMatcher mm1, MethodMatcher mm2)
Match all methods that either (or both) of the given MethodMatchers matches.参数类型为MethodMatcher的org.springframework.aop.support中的构造器 构造器 说明 ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)
Create a ComposablePointcut for the given ClassFilter and MethodMatcher.ComposablePointcut(MethodMatcher methodMatcher)
Create a ComposablePointcut for the given MethodMatcher, withClassFilter.TRUE
.org.springframework.aop.support.annotation中MethodMatcher的使用
实现MethodMatcher的org.springframework.aop.support.annotation中的类 修饰符和类型 类 说明 class
AnnotationMethodMatcher
Simple MethodMatcher that looks for a specific Java 5 annotation being present on a method (checking both the method on the invoked interface, if any, and the corresponding method on the target class).返回MethodMatcher的org.springframework.aop.support.annotation中的方法 修饰符和类型 方法 说明 MethodMatcher
AnnotationMatchingPointcut. getMethodMatcher()
org.springframework.cache.jcache.interceptor中MethodMatcher的使用
实现MethodMatcher的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 class
JCacheOperationSourcePointcut
A Pointcut that matches if the underlyingJCacheOperationSource
has an operation for a given method.