接口的使用
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的子接口 修饰符和类型 接口 说明 interfaceIntroductionAwareMethodMatcherA specialized type ofMethodMatcherthat takes into account introductions when matching methods.声明为MethodMatcher的org.springframework.aop中的字段 修饰符和类型 字段 说明 static MethodMatcherMethodMatcher. TRUECanonical instance that matches all methods.返回MethodMatcher的org.springframework.aop中的方法 修饰符和类型 方法 说明 MethodMatcherPointcut. getMethodMatcher()Return the MethodMatcher for this pointcut.org.springframework.aop.aspectj中MethodMatcher的使用
实现MethodMatcher的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 classAspectJExpressionPointcutSpringPointcutimplementation that uses the AspectJ weaver to evaluate a pointcut expression.返回MethodMatcher的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 MethodMatcherAspectJExpressionPointcut. getMethodMatcher()org.springframework.aop.support中MethodMatcher的使用
实现MethodMatcher的org.springframework.aop.support中的类 修饰符和类型 类 说明 classAbstractRegexpMethodPointcutAbstract base regular expression pointcut bean.classControlFlowPointcutPointcut and method matcher for use in simple cflow-style pointcut.classDynamicMethodMatcherConvenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.classDynamicMethodMatcherPointcutConvenient superclass when we want to force subclasses to implement MethodMatcher interface, but subclasses will want to be pointcuts.classJdkRegexpMethodPointcutRegular expression pointcut based on thejava.util.regexpackage.classNameMatchMethodPointcutPointcut bean for simple method name matches, as an alternative to regexp patterns.classStaticMethodMatcherConvenient abstract superclass for static method matchers, which don't care about arguments at runtime.classStaticMethodMatcherPointcutConvenient superclass when we want to force subclasses to implement theMethodMatcherinterface but subclasses will want to be pointcuts.classStaticMethodMatcherPointcutAdvisorConvenient base class for Advisors that are also static pointcuts.返回MethodMatcher的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 MethodMatcherComposablePointcut. getMethodMatcher()MethodMatcherControlFlowPointcut. getMethodMatcher()MethodMatcherDynamicMethodMatcherPointcut. getMethodMatcher()MethodMatcherStaticMethodMatcherPointcut. getMethodMatcher()static MethodMatcherMethodMatchers. intersection(MethodMatcher mm1, MethodMatcher mm2)Match all methods that both of the given MethodMatchers match.static MethodMatcherMethodMatchers. union(MethodMatcher mm1, MethodMatcher mm2)Match all methods that either (or both) of the given MethodMatchers matches.参数类型为MethodMatcher的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 ComposablePointcutComposablePointcut. intersection(MethodMatcher other)Apply an intersection with the given MethodMatcher.static MethodMatcherMethodMatchers. intersection(MethodMatcher mm1, MethodMatcher mm2)Match all methods that both of the given MethodMatchers match.static booleanMethodMatchers. matches(MethodMatcher mm, Method method, Class<?> targetClass, boolean hasIntroductions)Apply the given MethodMatcher to the given Method, supporting anIntroductionAwareMethodMatcher(if applicable).ComposablePointcutComposablePointcut. union(MethodMatcher other)Apply a union with the given MethodMatcher.static MethodMatcherMethodMatchers. 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中的类 修饰符和类型 类 说明 classAnnotationMethodMatcherSimple 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中的方法 修饰符和类型 方法 说明 MethodMatcherAnnotationMatchingPointcut. getMethodMatcher()org.springframework.cache.jcache.interceptor中MethodMatcher的使用
实现MethodMatcher的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 classJCacheOperationSourcePointcutA Pointcut that matches if the underlyingJCacheOperationSourcehas an operation for a given method.