接口的使用
org.aopalliance.aop.Advice
使用Advice的程序包
程序包
说明
Aspect Programming
AspectJ integration package.
Classes enabling AspectJ 5 @Annotated classes to be used in Framework AOP.
Package containing Infra basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
SPI package allowing AOP framework to handle arbitrary advice types.
Provides miscellaneous interceptor implementations.
-
infra.aop中Advice的使用
修饰符和类型接口说明interfaceCommon marker interface for after advice, such asAfterReturningAdviceandThrowsAdvice.interfaceAfter returning advice is invoked only on normal method return, not if an exception is thrown.interfaceinterfaceSubinterface of AOP Alliance Advice that allows additional interfaces to be implemented by an Advice, and available via a proxy using that interceptor.interfaceSub-interface of AOP Alliance MethodInterceptor that allows additional interfaces to be implemented by the interceptor, and available via a proxy using that interceptor.interfaceAdvice invoked before a method is invoked.interfaceTag interface for throws advice.修饰符和类型字段说明static final AdviceAdvisor.EMPTY_ADVICECommon placeholder for an emptyAdviceto be returned fromAdvisor.getAdvice()if no proper advice has been configured (yet). -
infra.aop.aspectj中Advice的使用
实现Advice的infra.aop.aspectj中的类修饰符和类型类说明classBase class for AOP AllianceAdviceclasses wrapping an AspectJ aspect or an AspectJ-annotated advice method.classFramework AOP advice wrapping an AspectJ after advice method.classFramework AOP advice wrapping an AspectJ after-returning advice method.classFramework AOP advice wrapping an AspectJ after-throwing advice method.classFramework AOP around advice (MethodInterceptor) that wraps an AspectJ advice method.classFramework AOP advice that wraps an AspectJ before method.声明为Advice的infra.aop.aspectj中的字段返回Advice的infra.aop.aspectj中的方法 -
infra.aop.aspectj.annotation中Advice的使用
修饰符和类型方法说明AspectJAdvisorFactory.getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectInstanceFactory, int declarationOrder, String aspectName) Build a Framework AOP Advice for the given AspectJ advice method.InstantiationModelAwarePointcutAdvisorImpl.getAdvice()Lazily instantiate advice if necessary.ReflectiveAspectJAdvisorFactory.getAdvice(Method candidateAdviceMethod, AspectJExpressionPointcut expressionPointcut, MetadataAwareAspectInstanceFactory aspectFactory, int declarationOrder, String aspectName) private AdviceInstantiationModelAwarePointcutAdvisorImpl.instantiateAdvice(AspectJExpressionPointcut pointcut) -
infra.aop.framework中Advice的使用
返回Advice的infra.aop.framework中的方法修饰符和类型方法说明AdvisedSupport.AdvisorKeyEntry.getAdvice()ProxyFactoryBean.PrototypePlaceholderAdvisor.getAdvice()参数类型为Advice的infra.aop.framework中的方法修饰符和类型方法说明voidAdd the given AOP Alliance Advice at the specified position in the advice chain.voidAdd the given AOP Alliance advice to the tail of the advice (interceptor) chain.voidCannot add introductions this way unless the advice implements IntroductionInfo.voidbooleanAdvisedSupport.adviceIncluded(Advice advice) Is the given advice included in any advisor within this proxy configuration?intReturn the index (from 0) of the given AOP Alliance Advice, or -1 if no such advice is an advice for this proxy.intbooleanAdvised.removeAdvice(Advice advice) Remove the Advisor containing the given advice.booleanAdvisedSupport.removeAdvice(Advice advice) -
infra.aop.framework.adapter中Advice的使用
修饰符和类型类说明classInterceptor to wrap anAfterReturningAdvice.classInterceptor to wrap aMethodBeforeAdvice.classInterceptor to wrap an after-throwing advice.参数类型为Advice的infra.aop.framework.adapter中的方法修饰符和类型方法说明booleanAdvisorAdapter.supportsAdvice(Advice advice) Does this adapter understand this advice object?booleanAfterReturningAdviceAdapter.supportsAdvice(Advice advice) booleanMethodBeforeAdviceAdapter.supportsAdvice(Advice advice) booleanThrowsAdviceAdapter.supportsAdvice(Advice advice) -
infra.aop.interceptor中Advice的使用
修饰符和类型类说明classBase class for monitoring interceptors, such as performance monitors.classBaseMethodInterceptorimplementation for tracing.classAOP AllianceMethodInterceptorthat processes method invocations asynchronously, using a givenAsyncTaskExecutor.classInterceptor that throttles concurrent access, blocking invocations if a specified concurrency limit is reached.classMethodInterceptorimplementation that allows for highly customizable method-level tracing, using placeholders.classAOP AllianceMethodInterceptorthat can be introduced in a chain to display verbose information about intercepted invocations to the logger.private static final recordInterceptor that exposes the specified bean name as invocation attribute.private static classIntroduction that exposes the specified bean name as invocation attribute.final classInterceptor that exposes the currentMethodInvocationas a thread-local object.classSimple AOP AllianceMethodInterceptorfor performance monitoring.classSimple AOP AllianceMethodInterceptorthat can be introduced in a chain to display verbose trace information about intercepted method invocations, with method entry and method exit info. -
infra.aop.support中Advice的使用
实现Advice的infra.aop.support中的类修饰符和类型类说明classConvenient implementation of theIntroductionInterceptorinterface.classConvenient implementation of theIntroductionInterceptorinterface.final classRuntime MethodInterceptor声明为Advice的infra.aop.support中的字段修饰符和类型字段说明private AdviceAbstractBeanFactoryPointcutAdvisor.adviceprivate AdviceAbstractGenericPointcutAdvisor.adviceprivate final AdviceDefaultIntroductionAdvisor.adviceprivate AdviceStaticMethodMatcherPointcutAdvisor.advice返回Advice的infra.aop.support中的方法修饰符和类型方法说明AbstractBeanFactoryPointcutAdvisor.getAdvice()AbstractGenericPointcutAdvisor.getAdvice()DefaultIntroductionAdvisor.getAdvice()StaticMethodMatcherPointcutAdvisor.getAdvice()参数类型为Advice的infra.aop.support中的方法修饰符和类型方法说明voidSpecify a particular instance of the target advice directly, avoiding lazy resolution inAbstractBeanFactoryPointcutAdvisor.getAdvice().voidSpecify the advice that this advisor should apply.void参数类型为Advice的infra.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(Pointcut pointcut, Advice advice) Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.DefaultPointcutAdvisor(Advice advice) Create a DefaultPointcutAdvisor that matches all methods.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.Create a new StaticMethodMatcherPointcutAdvisor for the given advice. -
org.aopalliance.intercept中Advice的使用
修饰符和类型接口说明interfaceIntercepts the construction of a new object.interfaceIntercepts field access on a target object.interfaceThis interface represents a generic interceptor.interfaceIntercepts calls on an interface on its way to the target.