接口的使用
org.springframework.aop.Pointcut
使用Pointcut的程序包 程序包 说明 org.springframework.aop Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.org.springframework.aop.aspectj AspectJ integration package.org.springframework.aop.aspectj.annotation Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.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.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.dao.annotation Annotation support for DAOs.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.aop中Pointcut的使用
声明为Pointcut的org.springframework.aop中的字段 修饰符和类型 字段 说明 static PointcutPointcut. TRUECanonical Pointcut instance that always matches.返回Pointcut的org.springframework.aop中的方法 修饰符和类型 方法 说明 PointcutPointcutAdvisor. getPointcut()Get the Pointcut that drives this advisor.org.springframework.aop.aspectj中Pointcut的使用
实现Pointcut的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 classAspectJExpressionPointcutSpringPointcutimplementation that uses the AspectJ weaver to evaluate a pointcut expression.返回Pointcut的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 PointcutAbstractAspectJAdvice. buildSafePointcut()Build a 'safe' pointcut that excludes the AspectJ advice method itself.PointcutAspectJExpressionPointcutAdvisor. getPointcut()PointcutAspectJPointcutAdvisor. getPointcut()org.springframework.aop.aspectj.annotation中Pointcut的使用
返回Pointcut的org.springframework.aop.aspectj.annotation中的方法 修饰符和类型 方法 说明 PointcutAspectMetadata. getPerClausePointcut()Return a Spring pointcut expression for a singleton aspect.org.springframework.aop.support中Pointcut的使用
org.springframework.aop.support中Pointcut的子接口 修饰符和类型 接口 说明 interfaceExpressionPointcutInterface to be implemented by pointcuts that use String expressions.实现Pointcut的org.springframework.aop.support中的类 修饰符和类型 类 说明 classAbstractExpressionPointcutAbstract superclass for expression pointcuts, offering location and expression properties.classAbstractRegexpMethodPointcutAbstract base regular expression pointcut bean.classComposablePointcutConvenient class for building up pointcuts.classControlFlowPointcutPointcut and method matcher for use in simple cflow-style pointcut.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.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.声明为Pointcut的org.springframework.aop.support中的字段 修饰符和类型 字段 说明 static PointcutPointcuts. GETTERSPointcut matching all bean property getters, in any class.static PointcutPointcuts. SETTERSPointcut matching all bean property setters, in any class.返回Pointcut的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 PointcutDefaultBeanFactoryPointcutAdvisor. getPointcut()PointcutDefaultPointcutAdvisor. getPointcut()PointcutNameMatchMethodPointcutAdvisor. getPointcut()PointcutRegexpMethodPointcutAdvisor. getPointcut()Initialize the singleton Pointcut held within this Advisor.PointcutStaticMethodMatcherPointcutAdvisor. getPointcut()static PointcutPointcuts. intersection(Pointcut pc1, Pointcut pc2)Match all methods that both the given pointcuts match.static PointcutPointcuts. union(Pointcut pc1, Pointcut pc2)Match all methods that either (or both) of the given pointcuts matches.参数类型为Pointcut的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 static booleanAopUtils. canApply(Pointcut pc, Class<?> targetClass)Can the given pointcut apply at all on the given class?static booleanAopUtils. canApply(Pointcut pc, Class<?> targetClass, boolean hasIntroductions)Can the given pointcut apply at all on the given class?ComposablePointcutComposablePointcut. intersection(Pointcut other)Apply an intersection with the given Pointcut.static PointcutPointcuts. intersection(Pointcut pc1, Pointcut pc2)Match all methods that both the given pointcuts match.static booleanPointcuts. matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args)Perform the least expensive check for a pointcut match.voidDefaultBeanFactoryPointcutAdvisor. setPointcut(Pointcut pointcut)Specify the pointcut targeting the advice.voidDefaultPointcutAdvisor. setPointcut(Pointcut pointcut)Specify the pointcut targeting the advice.ComposablePointcutComposablePointcut. union(Pointcut other)Apply a union with the given Pointcut.static PointcutPointcuts. union(Pointcut pc1, Pointcut pc2)Match all methods that either (or both) of the given pointcuts matches.参数类型为Pointcut的org.springframework.aop.support中的构造器 构造器 说明 ComposablePointcut(Pointcut pointcut)Create a ComposablePointcut based on the given Pointcut.DefaultPointcutAdvisor(Pointcut pointcut, Advice advice)Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.org.springframework.aop.support.annotation中Pointcut的使用
实现Pointcut的org.springframework.aop.support.annotation中的类 修饰符和类型 类 说明 classAnnotationMatchingPointcutorg.springframework.cache.interceptor中Pointcut的使用
返回Pointcut的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 PointcutBeanFactoryCacheOperationSourceAdvisor. getPointcut()参数类型为Pointcut的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 voidCacheProxyFactoryBean. setPointcut(Pointcut pointcut)Set a pointcut, i.e. a bean that triggers conditional invocation of theCacheInterceptordepending on the method and attributes passed.org.springframework.cache.jcache.interceptor中Pointcut的使用
实现Pointcut的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 classJCacheOperationSourcePointcutA Pointcut that matches if the underlyingJCacheOperationSourcehas an operation for a given method.返回Pointcut的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 PointcutBeanFactoryJCacheOperationSourceAdvisor. getPointcut()org.springframework.dao.annotation中Pointcut的使用
返回Pointcut的org.springframework.dao.annotation中的方法 修饰符和类型 方法 说明 PointcutPersistenceExceptionTranslationAdvisor. getPointcut()org.springframework.scheduling.annotation中Pointcut的使用
返回Pointcut的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 protected PointcutAsyncAnnotationAdvisor. buildPointcut(Set<Class<? extends Annotation>> asyncAnnotationTypes)Calculate a pointcut for the given async annotation types, if any.PointcutAsyncAnnotationAdvisor. getPointcut()org.springframework.transaction.interceptor中Pointcut的使用
返回Pointcut的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 PointcutBeanFactoryTransactionAttributeSourceAdvisor. getPointcut()PointcutTransactionAttributeSourceAdvisor. getPointcut()参数类型为Pointcut的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 voidTransactionProxyFactoryBean. setPointcut(Pointcut pointcut)Set a pointcut, i.e a bean that can cause conditional invocation of the TransactionInterceptor depending on method and attributes passed.