程序包 infra.aop.framework
@NonNullApi
@NonNullFields
package infra.aop.framework
Package containing Infra basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
Infra AOP supports proxying interfaces or classes, introductions, and offers static and dynamic pointcuts.
Any Infra AOP proxy can be cast to the ProxyConfig AOP configuration interface in this package to add or remove interceptors.
The ProxyFactoryBean is a convenient way to create AOP proxies in a BeanFactory or ApplicationContext. However, proxies can be created programmatically using the ProxyFactory class.
-
类说明Base class for
BeanPostProcessorimplementations that apply a AOPAdvisorto specific beans.Implemented basicAbstractMethodInvocation.proceed()logicConvenient superclass forFactoryBeantypes that produce singleton-scoped proxy objects.Interface to be implemented by classes that hold the configuration of a factory of AOP proxies.Base class for AOP proxy configuration managers.Stub for an Advisor instance that is just needed for key purposes, allowing for efficient equals and hashCode comparisons against the advice class and the pointcut.Simple wrapper class around a Method.Exception that gets thrown on illegal AOP configuration arguments.Class containing static methods used to obtain information about the current AOP invocation.Delegate interface for a configured AOP proxy, allowing for the creation of actual proxy objects.Interface to be implemented by factories that are able to create AOP proxies based onAdvisedSupportconfiguration objects.Utility methods for AOP proxy factories.CGLIB-basedAopProxyimplementation for the AOP framework.Dispatcher for any methods declared on the Advised class.Implementation of AOP Alliance MethodInvocation used by this AOP proxy.General purpose AOP callback.Interceptor for unadvised dynamic targets when the proxy needs exposing.Interceptor used to invoke a dynamic target without creating a method invocation or evaluating an advice chain.Dispatcher for theequalsmethod.Interceptor used specifically for advised methods on a frozen, static proxy.Dispatcher for thehashCodemethod.CallbackFilter to assign Callbacks to methods.Serializable replacement for CGLIB's NoOp interface.Dispatcher for a static target.Method interceptor used for static targets with no advice chain, when the proxy is to be exposed.Method interceptor used for static targets with no advice chain.DefaultAopProxyFactoryimplementation, creating either a CGLIB proxy or a JDK dynamic proxy.JDK-basedAopProxyimplementation for the AOP framework, based on JDKdynamic proxies.Holder for the complete proxied interfaces and derived metadata, to be cached inAdvisedSupport.proxyMetadataCache.Convenience superclass for configuration used in creating proxies, to ensure that all proxy creators have consistent properties.Proxy CreatorBase class for proxy factories.Factory for AOP proxies for programmatic use, rather than via declarative setup in a bean factory.FactoryBeanimplementation that builds an AOP proxy based on beans inBeanFactory.Used in the interceptor chain where we need to replace a bean with a prototype on creating a proxy.Base class with common functionality for proxy processors, in particular ClassLoader management and theProxyProcessorSupport.evaluateProxyInterfaces(java.lang.Class<?>, infra.aop.framework.ProxyFactory)algorithm.