接口的使用
org.aopalliance.intercept.MethodInterceptor
使用MethodInterceptor的程序包
程序包
说明
Aspect Programming
AspectJ integration package.
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中MethodInterceptor的使用
修饰符和类型接口说明interfaceSub-interface of AOP Alliance MethodInterceptor that allows additional interfaces to be implemented by the interceptor, and available via a proxy using that interceptor.声明为MethodInterceptor的infra.aop中的字段返回MethodInterceptor的infra.aop中的方法修饰符和类型方法说明DefaultInterceptorChainFactory.getInterceptors(Advised config, Method method, Class<?> targetClass) InterceptorChainFactory.getInterceptors(Advised config, Method method, Class<?> targetClass) Determine a list ofMethodInterceptorobjects for the given advisor chain configuration. -
infra.aop.aspectj中MethodInterceptor的使用
修饰符和类型类说明classFramework AOP advice wrapping an AspectJ after advice method.classFramework AOP advice wrapping an AspectJ after-throwing advice method.classFramework AOP around advice (MethodInterceptor) that wraps an AspectJ advice method. -
infra.aop.framework中MethodInterceptor的使用
修饰符和类型字段说明(专用程序包) final MethodInterceptor[]CglibAopProxy.FixedChainStaticTargetInterceptor.adviceChainprotected final MethodInterceptor[]DefaultMethodInvocation.advicesprivate MethodInterceptor[]AdvisedSupport.cachedInterceptorsCache with shared interceptors which are not method-specific.修饰符和类型方法说明AdvisedSupport.getInterceptors(Method method, Class<?> targetClass) Determine an array ofMethodInterceptorobjects for the given method, based on this configuration.参数类型为MethodInterceptor的infra.aop.framework中的方法修饰符和类型方法说明private static DefaultMethodInvocationCglibAopProxy.createInvocation(Object proxy, Method method, Object[] args, infra.bytecode.proxy.MethodProxy methodProxy, Object target, Class<?> targetClass, MethodInterceptor[] chain) 参数类型为MethodInterceptor的infra.aop.framework中的构造器限定符构造器说明CglibMethodInvocation(Object proxyObject, Object target, Method method, Class<?> targetClass, infra.bytecode.proxy.MethodProxy methodProxy, Object[] arguments, MethodInterceptor[] advices) DefaultMethodInvocation(Object proxy, Object target, Method method, Class<?> targetClass, Object[] arguments, MethodInterceptor[] advices) FixedChainStaticTargetInterceptor(MethodInterceptor[] adviceChain, AdvisedSupport config) -
infra.aop.framework.adapter中MethodInterceptor的使用
修饰符和类型类说明classInterceptor to wrap anAfterReturningAdvice.classInterceptor to wrap aMethodBeforeAdvice.classInterceptor to wrap an after-throwing advice.修饰符和类型方法说明AdvisorAdapter.getInterceptor(Advisor advisor) Return an AOP Alliance MethodInterceptor exposing the behavior of the given advice to an interception-based AOP framework.AfterReturningAdviceAdapter.getInterceptor(Advisor advisor) MethodBeforeAdviceAdapter.getInterceptor(Advisor advisor) ThrowsAdviceAdapter.getInterceptor(Advisor advisor) 返回变量类型为MethodInterceptor的类型的infra.aop.framework.adapter中的方法修饰符和类型方法说明AdvisorAdapterRegistry.getInterceptors(Advisor advisor) Return an array of AOP Alliance MethodInterceptors to allow use of the given Advisor in an interception-based framework.DefaultAdvisorAdapterRegistry.getInterceptors(Advisor advisor) -
infra.aop.interceptor中MethodInterceptor的使用
修饰符和类型类说明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中MethodInterceptor的使用
修饰符和类型类说明classConvenient implementation of theIntroductionInterceptorinterface.classConvenient implementation of theIntroductionInterceptorinterface.final classRuntime MethodInterceptor参数类型为MethodInterceptor的infra.aop.support中的构造器