接口的使用
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 Pointcut
Pointcut. TRUE
Canonical Pointcut instance that always matches.返回Pointcut的org.springframework.aop中的方法 修饰符和类型 方法 说明 Pointcut
PointcutAdvisor. getPointcut()
Get the Pointcut that drives this advisor.org.springframework.aop.aspectj中Pointcut的使用
实现Pointcut的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 class
AspectJExpressionPointcut
SpringPointcut
implementation that uses the AspectJ weaver to evaluate a pointcut expression.返回Pointcut的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 Pointcut
AbstractAspectJAdvice. buildSafePointcut()
Build a 'safe' pointcut that excludes the AspectJ advice method itself.Pointcut
AspectJExpressionPointcutAdvisor. getPointcut()
Pointcut
AspectJPointcutAdvisor. getPointcut()
org.springframework.aop.aspectj.annotation中Pointcut的使用
返回Pointcut的org.springframework.aop.aspectj.annotation中的方法 修饰符和类型 方法 说明 Pointcut
AspectMetadata. getPerClausePointcut()
Return a Spring pointcut expression for a singleton aspect.org.springframework.aop.support中Pointcut的使用
org.springframework.aop.support中Pointcut的子接口 修饰符和类型 接口 说明 interface
ExpressionPointcut
Interface to be implemented by pointcuts that use String expressions.实现Pointcut的org.springframework.aop.support中的类 修饰符和类型 类 说明 class
AbstractExpressionPointcut
Abstract superclass for expression pointcuts, offering location and expression properties.class
AbstractRegexpMethodPointcut
Abstract base regular expression pointcut bean.class
ComposablePointcut
Convenient class for building up pointcuts.class
ControlFlowPointcut
Pointcut and method matcher for use in simple cflow-style pointcut.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
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.声明为Pointcut的org.springframework.aop.support中的字段 修饰符和类型 字段 说明 static Pointcut
Pointcuts. GETTERS
Pointcut matching all bean property getters, in any class.static Pointcut
Pointcuts. SETTERS
Pointcut matching all bean property setters, in any class.返回Pointcut的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 Pointcut
DefaultBeanFactoryPointcutAdvisor. getPointcut()
Pointcut
DefaultPointcutAdvisor. getPointcut()
Pointcut
NameMatchMethodPointcutAdvisor. getPointcut()
Pointcut
RegexpMethodPointcutAdvisor. getPointcut()
Initialize the singleton Pointcut held within this Advisor.Pointcut
StaticMethodMatcherPointcutAdvisor. getPointcut()
static Pointcut
Pointcuts. intersection(Pointcut pc1, Pointcut pc2)
Match all methods that both the given pointcuts match.static Pointcut
Pointcuts. union(Pointcut pc1, Pointcut pc2)
Match all methods that either (or both) of the given pointcuts matches.参数类型为Pointcut的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 static boolean
AopUtils. canApply(Pointcut pc, Class<?> targetClass)
Can the given pointcut apply at all on the given class?static boolean
AopUtils. canApply(Pointcut pc, Class<?> targetClass, boolean hasIntroductions)
Can the given pointcut apply at all on the given class?ComposablePointcut
ComposablePointcut. intersection(Pointcut other)
Apply an intersection with the given Pointcut.static Pointcut
Pointcuts. intersection(Pointcut pc1, Pointcut pc2)
Match all methods that both the given pointcuts match.static boolean
Pointcuts. matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args)
Perform the least expensive check for a pointcut match.void
DefaultBeanFactoryPointcutAdvisor. setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.void
DefaultPointcutAdvisor. setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.ComposablePointcut
ComposablePointcut. union(Pointcut other)
Apply a union with the given Pointcut.static Pointcut
Pointcuts. 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中的类 修饰符和类型 类 说明 class
AnnotationMatchingPointcut
org.springframework.cache.interceptor中Pointcut的使用
返回Pointcut的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 Pointcut
BeanFactoryCacheOperationSourceAdvisor. getPointcut()
参数类型为Pointcut的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 void
CacheProxyFactoryBean. setPointcut(Pointcut pointcut)
Set a pointcut, i.e. a bean that triggers conditional invocation of theCacheInterceptor
depending on the method and attributes passed.org.springframework.cache.jcache.interceptor中Pointcut的使用
实现Pointcut的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 class
JCacheOperationSourcePointcut
A Pointcut that matches if the underlyingJCacheOperationSource
has an operation for a given method.返回Pointcut的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 Pointcut
BeanFactoryJCacheOperationSourceAdvisor. getPointcut()
org.springframework.dao.annotation中Pointcut的使用
返回Pointcut的org.springframework.dao.annotation中的方法 修饰符和类型 方法 说明 Pointcut
PersistenceExceptionTranslationAdvisor. getPointcut()
org.springframework.scheduling.annotation中Pointcut的使用
返回Pointcut的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 protected Pointcut
AsyncAnnotationAdvisor. buildPointcut(Set<Class<? extends Annotation>> asyncAnnotationTypes)
Calculate a pointcut for the given async annotation types, if any.Pointcut
AsyncAnnotationAdvisor. getPointcut()
org.springframework.transaction.interceptor中Pointcut的使用
返回Pointcut的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 Pointcut
BeanFactoryTransactionAttributeSourceAdvisor. getPointcut()
Pointcut
TransactionAttributeSourceAdvisor. getPointcut()
参数类型为Pointcut的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 void
TransactionProxyFactoryBean. setPointcut(Pointcut pointcut)
Set a pointcut, i.e a bean that can cause conditional invocation of the TransactionInterceptor depending on method and attributes passed.