接口的使用
org.aopalliance.aop.Advice
使用Advice的程序包 程序包 说明 org.aopalliance.intercept The AOP Alliance reflective interception abstraction.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.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.adapter SPI package allowing Spring AOP framework to handle arbitrary advice types.org.springframework.aop.interceptor Provides miscellaneous interceptor implementations.org.springframework.aop.support Convenience classes for using Spring's AOP API.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.context.event Support classes for application events, like standard context events.org.springframework.dao.annotation Annotation support for DAOs.org.springframework.dao.support Support classes for DAO implementations, providing miscellaneous utility methods.org.springframework.ejb.access This package contains classes that allow easy access to EJBs.org.springframework.jms.remoting Remoting classes for transparent Java-to-Java remoting via a JMS provider.org.springframework.jmx.access Provides support for accessing remote MBean resources.org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5package.org.springframework.remoting.caucho This package provides remoting classes for Caucho's Hessian protocol: a proxy factory for accessing Hessian services, and an exporter for making beans available to Hessian clients.org.springframework.remoting.httpinvoker Remoting classes for transparent Java-to-Java remoting via HTTP invokers.org.springframework.remoting.jaxws Remoting classes for Web Services via JAX-WS (the successor of JAX-RPC), as included in Java 6 and Java EE 5.org.springframework.remoting.rmi Remoting classes for conventional RMI and transparent remoting via RMI invokers.org.springframework.remoting.support Generic support classes for remoting implementations.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.aopalliance.intercept中Advice的使用
org.aopalliance.intercept中Advice的子接口 修饰符和类型 接口 说明 interfaceConstructorInterceptorIntercepts the construction of a new object.interfaceInterceptorThis interface represents a generic interceptor.interfaceMethodInterceptorIntercepts calls on an interface on its way to the target.org.springframework.aop中Advice的使用
org.springframework.aop中Advice的子接口 修饰符和类型 接口 说明 interfaceAfterAdviceCommon marker interface for after advice, such asAfterReturningAdviceandThrowsAdvice.interfaceAfterReturningAdviceAfter returning advice is invoked only on normal method return, not if an exception is thrown.interfaceBeforeAdviceCommon marker interface for before advice, such asMethodBeforeAdvice.interfaceDynamicIntroductionAdviceSubinterface of AOP Alliance Advice that allows additional interfaces to be implemented by an Advice, and available via a proxy using that interceptor.interfaceIntroductionInterceptorSubinterface of AOP Alliance MethodInterceptor that allows additional interfaces to be implemented by the interceptor, and available via a proxy using that interceptor.interfaceMethodBeforeAdviceAdvice invoked before a method is invoked.interfaceThrowsAdviceTag interface for throws advice.声明为Advice的org.springframework.aop中的字段 修饰符和类型 字段 说明 static AdviceAdvisor. EMPTY_ADVICECommon placeholder for an emptyAdviceto be returned fromAdvisor.getAdvice()if no proper advice has been configured (yet).返回Advice的org.springframework.aop中的方法 修饰符和类型 方法 说明 AdviceAdvisor. getAdvice()Return the advice part of this aspect.org.springframework.aop.aspectj中Advice的使用
实现Advice的org.springframework.aop.aspectj中的类 修饰符和类型 类 说明 classAbstractAspectJAdviceBase class for AOP AllianceAdviceclasses wrapping an AspectJ aspect or an AspectJ-annotated advice method.classAspectJAfterAdviceSpring AOP advice wrapping an AspectJ after advice method.classAspectJAfterReturningAdviceSpring AOP advice wrapping an AspectJ after-returning advice method.classAspectJAfterThrowingAdviceSpring AOP advice wrapping an AspectJ after-throwing advice method.classAspectJAroundAdviceSpring AOP around advice (MethodInterceptor) that wraps an AspectJ advice method.classAspectJMethodBeforeAdviceSpring AOP advice that wraps an AspectJ before method.org.springframework.aop.aspectj.annotation中Advice的使用
返回Advice的org.springframework.aop.aspectj.annotation中的方法 修饰符和类型 方法 说明 AdviceAspectJAdvisorFactory. getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName)Build a Spring AOP Advice for the given AspectJ advice method.AdviceReflectiveAspectJAdvisorFactory. getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName)org.springframework.aop.framework中Advice的使用
参数类型为Advice的org.springframework.aop.framework中的方法 修饰符和类型 方法 说明 voidAdvised. addAdvice(int pos, Advice advice)Add the given AOP Alliance Advice at the specified position in the advice chain.voidAdvised. addAdvice(Advice advice)Add the given AOP Alliance advice to the tail of the advice (interceptor) chain.voidAdvisedSupport. addAdvice(int pos, Advice advice)Cannot add introductions this way unless the advice implements IntroductionInfo.voidAdvisedSupport. addAdvice(Advice advice)booleanAdvisedSupport. adviceIncluded(Advice advice)Is the given advice included in any advisor within this proxy configuration?intAdvised. indexOf(Advice advice)Return the index (from 0) of the given AOP Alliance Advice, or -1 if no such advice is an advice for this proxy.intAdvisedSupport. indexOf(Advice advice)booleanAdvised. removeAdvice(Advice advice)Remove the Advisor containing the given advice.booleanAdvisedSupport. removeAdvice(Advice advice)org.springframework.aop.framework.adapter中Advice的使用
实现Advice的org.springframework.aop.framework.adapter中的类 修饰符和类型 类 说明 classAfterReturningAdviceInterceptorInterceptor to wrap anAfterReturningAdvice.classMethodBeforeAdviceInterceptorInterceptor to wrap aMethodBeforeAdvice.classThrowsAdviceInterceptorInterceptor to wrap an after-throwing advice.参数类型为Advice的org.springframework.aop.framework.adapter中的方法 修饰符和类型 方法 说明 booleanAdvisorAdapter. supportsAdvice(Advice advice)Does this adapter understand this advice object?org.springframework.aop.interceptor中Advice的使用
实现Advice的org.springframework.aop.interceptor中的类 修饰符和类型 类 说明 classAbstractMonitoringInterceptorBase class for monitoring interceptors, such as performance monitors.classAbstractTraceInterceptorBaseMethodInterceptorimplementation for tracing.classAsyncExecutionInterceptorAOP AllianceMethodInterceptorthat processes method invocations asynchronously, using a givenAsyncTaskExecutor.classConcurrencyThrottleInterceptorInterceptor that throttles concurrent access, blocking invocations if a specified concurrency limit is reached.classCustomizableTraceInterceptorMethodInterceptorimplementation that allows for highly customizable method-level tracing, using placeholders.classDebugInterceptorAOP AllianceMethodInterceptorthat can be introduced in a chain to display verbose information about intercepted invocations to the logger.classExposeInvocationInterceptorInterceptor that exposes the currentMethodInvocationas a thread-local object.classJamonPerformanceMonitorInterceptorPerformance monitor interceptor that uses JAMon library to perform the performance measurement on the intercepted method and output the stats.classPerformanceMonitorInterceptorSimple AOP AllianceMethodInterceptorfor performance monitoring.classSimpleTraceInterceptorSimple AOP AllianceMethodInterceptorthat can be introduced in a chain to display verbose trace information about intercepted method invocations, with method entry and method exit info.org.springframework.aop.support中Advice的使用
实现Advice的org.springframework.aop.support中的类 修饰符和类型 类 说明 classDelegatePerTargetObjectIntroductionInterceptorConvenient implementation of theIntroductionInterceptorinterface.classDelegatingIntroductionInterceptorConvenient implementation of theIntroductionInterceptorinterface.返回Advice的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 AdviceAbstractBeanFactoryPointcutAdvisor. getAdvice()AdviceAbstractGenericPointcutAdvisor. getAdvice()AdviceDefaultIntroductionAdvisor. getAdvice()AdviceStaticMethodMatcherPointcutAdvisor. getAdvice()参数类型为Advice的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 voidAbstractBeanFactoryPointcutAdvisor. setAdvice(Advice advice)Specify a particular instance of the target advice directly, avoiding lazy resolution inAbstractBeanFactoryPointcutAdvisor.getAdvice().voidAbstractGenericPointcutAdvisor. setAdvice(Advice advice)Specify the advice that this advisor should apply.voidStaticMethodMatcherPointcutAdvisor. setAdvice(Advice advice)参数类型为Advice的org.springframework.aop.support中的构造器 构造器 说明 DefaultIntroductionAdvisor(Advice advice)Create a DefaultIntroductionAdvisor for the given advice.DefaultIntroductionAdvisor(Advice advice, IntroductionInfo introductionInfo)Create a DefaultIntroductionAdvisor for the given advice.DefaultPointcutAdvisor(Advice advice)Create a DefaultPointcutAdvisor that matches all methods.DefaultPointcutAdvisor(Pointcut pointcut, Advice advice)Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.NameMatchMethodPointcutAdvisor(Advice advice)RegexpMethodPointcutAdvisor(String[] patterns, Advice advice)Create a RegexpMethodPointcutAdvisor for the given advice.RegexpMethodPointcutAdvisor(String pattern, Advice advice)Create a RegexpMethodPointcutAdvisor for the given advice.RegexpMethodPointcutAdvisor(Advice advice)Create a RegexpMethodPointcutAdvisor for the given advice.StaticMethodMatcherPointcutAdvisor(Advice advice)Create a new StaticMethodMatcherPointcutAdvisor for the given advice.org.springframework.cache.interceptor中Advice的使用
实现Advice的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 classCacheInterceptorAOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (Cache).org.springframework.cache.jcache.interceptor中Advice的使用
实现Advice的org.springframework.cache.jcache.interceptor中的类 修饰符和类型 类 说明 classJCacheInterceptorAOP Alliance MethodInterceptor for declarative cache management using JSR-107 caching annotations.org.springframework.context.event中Advice的使用
实现Advice的org.springframework.context.event中的类 修饰符和类型 类 说明 classEventPublicationInterceptorInterceptorthat publishes anApplicationEventto allApplicationListenersregistered with anApplicationEventPublisherafter each successful method invocation.org.springframework.dao.annotation中Advice的使用
返回Advice的org.springframework.dao.annotation中的方法 修饰符和类型 方法 说明 AdvicePersistenceExceptionTranslationAdvisor. getAdvice()org.springframework.dao.support中Advice的使用
实现Advice的org.springframework.dao.support中的类 修饰符和类型 类 说明 classPersistenceExceptionTranslationInterceptorAOP Alliance MethodInterceptor that provides persistence exception translation based on a given PersistenceExceptionTranslator.org.springframework.ejb.access中Advice的使用
实现Advice的org.springframework.ejb.access中的类 修饰符和类型 类 说明 classAbstractRemoteSlsbInvokerInterceptorBase class for interceptors proxying remote Stateless Session Beans.classAbstractSlsbInvokerInterceptorBase class for AOP interceptors invoking local or remote Stateless Session Beans.classLocalSlsbInvokerInterceptorInvoker for a local Stateless Session Bean.classLocalStatelessSessionProxyFactoryBeanConvenientFactoryBeanfor local Stateless Session Bean (SLSB) proxies.classSimpleRemoteSlsbInvokerInterceptorBasic invoker for a remote Stateless Session Bean.classSimpleRemoteStatelessSessionProxyFactoryBeanConvenientFactoryBeanfor remote SLSB proxies.org.springframework.jms.remoting中Advice的使用
实现Advice的org.springframework.jms.remoting中的类 修饰符和类型 类 说明 classJmsInvokerClientInterceptorMethodInterceptorfor accessing a JMS-based remote service.classJmsInvokerProxyFactoryBeanFactoryBean for JMS invoker proxies.org.springframework.jmx.access中Advice的使用
实现Advice的org.springframework.jmx.access中的类 修饰符和类型 类 说明 classMBeanClientInterceptorMethodInterceptorthat routes calls to an MBean running on the suppliedMBeanServerConnection.classMBeanProxyFactoryBeanCreates a proxy to a managed resource running either locally or remotely.org.springframework.orm.hibernate5.support中Advice的使用
实现Advice的org.springframework.orm.hibernate5.support中的类 修饰符和类型 类 说明 classOpenSessionInterceptorSimple AOP AllianceMethodInterceptorimplementation that binds a new HibernateSessionfor each method invocation, if none bound before.org.springframework.remoting.caucho中Advice的使用
实现Advice的org.springframework.remoting.caucho中的类 修饰符和类型 类 说明 classHessianClientInterceptorMethodInterceptorfor accessing a Hessian service.classHessianProxyFactoryBeanFactoryBeanfor Hessian proxies.org.springframework.remoting.httpinvoker中Advice的使用
实现Advice的org.springframework.remoting.httpinvoker中的类 修饰符和类型 类 说明 classHttpInvokerClientInterceptorMethodInterceptorfor accessing an HTTP invoker service.classHttpInvokerProxyFactoryBeanFactoryBeanfor HTTP invoker proxies.org.springframework.remoting.jaxws中Advice的使用
实现Advice的org.springframework.remoting.jaxws中的类 修饰符和类型 类 说明 classJaxWsPortClientInterceptorMethodInterceptorfor accessing a specific port of a JAX-WS service.classJaxWsPortProxyFactoryBeanFactoryBeanfor a specific port of a JAX-WS service.org.springframework.remoting.rmi中Advice的使用
实现Advice的org.springframework.remoting.rmi中的类 修饰符和类型 类 说明 classJndiRmiClientInterceptorMethodInterceptorfor accessing RMI services from JNDI.classJndiRmiProxyFactoryBeanFactoryBeanfor RMI proxies from JNDI.classRmiClientInterceptorMethodInterceptorfor accessing conventional RMI services or RMI invokers.classRmiProxyFactoryBeanFactoryBeanfor RMI proxies, supporting both conventional RMI services and RMI invokers.org.springframework.remoting.support中Advice的使用
实现Advice的org.springframework.remoting.support中的类 修饰符和类型 类 说明 classRemoteInvocationTraceInterceptorAOP Alliance MethodInterceptor for tracing remote invocations.org.springframework.scheduling.annotation中Advice的使用
实现Advice的org.springframework.scheduling.annotation中的类 修饰符和类型 类 说明 classAnnotationAsyncExecutionInterceptorSpecialization ofAsyncExecutionInterceptorthat delegates method execution to anExecutorbased on theAsyncannotation.返回Advice的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 protected AdviceAsyncAnnotationAdvisor. buildAdvice(Supplier<Executor> executor, Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)AdviceAsyncAnnotationAdvisor. getAdvice()org.springframework.transaction.interceptor中Advice的使用
实现Advice的org.springframework.transaction.interceptor中的类 修饰符和类型 类 说明 classTransactionInterceptorAOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (PlatformTransactionManager/ReactiveTransactionManager).返回Advice的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 AdviceTransactionAttributeSourceAdvisor. getAdvice()org.springframework.validation.beanvalidation中Advice的使用
实现Advice的org.springframework.validation.beanvalidation中的类 修饰符和类型 类 说明 classMethodValidationInterceptorAn AOP AllianceMethodInterceptorimplementation that delegates to a JSR-303 provider for performing method-level validation on annotated methods.返回Advice的org.springframework.validation.beanvalidation中的方法 修饰符和类型 方法 说明 protected AdviceMethodValidationPostProcessor. createMethodValidationAdvice(Validator validator)Create AOP advice for method validation purposes, to be applied with a pointcut for the specified 'validated' annotation.