类 ProxyCreatorSupport
java.lang.Object
infra.aop.framework.ProxyConfig
infra.aop.framework.AdvisedSupport
infra.aop.framework.ProxyCreatorSupport
- 所有已实现的接口:
Advised,TargetClassAware,Serializable
- 直接已知子类:
AspectJProxyFactory,ProxyFactory,ProxyFactoryBean
Base class for proxy factories.
Provides convenient access to a configurable AopProxyFactory.
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, TODAY 2021/2/1 22:55
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 infra.aop.framework.AdvisedSupport
AdvisedSupport.MethodCacheKey -
字段概要
字段修饰符和类型字段说明private booleanSet to true when the first AOP proxy has been created.private AopProxyFactoryprivate ArrayList<AdvisedSupportListener>private static final long从类继承的字段 infra.aop.framework.AdvisedSupport
advisorKey, EMPTY_TARGET_SOURCE, proxyMetadataCache, targetSource从类继承的字段 infra.aop.framework.ProxyConfig
exposeProxy, opaque -
构造器概要
构造器构造器说明Create a new ProxyCreatorSupport instance.ProxyCreatorSupport(AopProxyFactory aopProxyFactory) Create a new ProxyCreatorSupport instance. -
方法概要
修饰符和类型方法说明private voidactivate()Activate this proxy configuration.voidaddListener(AdvisedSupportListener listener) Add the given AdvisedSupportListener to this proxy configuration.protected voidPropagate advice change event to all AdvisedSupportListeners.protected final AopProxySubclasses should call this to get a new AOP proxy.Return the AopProxyFactory that this ProxyConfig uses.protected final booleanisActive()Subclasses can call this to check whether any AOP proxies have been created yet.voidremoveListener(AdvisedSupportListener listener) Remove the given AdvisedSupportListener from this proxy configuration.voidsetAopProxyFactory(AopProxyFactory aopProxyFactory) Customize the AopProxyFactory, allowing different strategies to be dropped in without changing the core framework.从类继承的方法 infra.aop.framework.AdvisedSupport
addAdvice, addAdvice, addAdvisor, addAdvisor, addAdvisorInternal, addAdvisors, addAdvisors, addInterface, adviceIncluded, copyConfigurationFrom, copyConfigurationFrom, countAdvicesOfType, getAdvisorCount, getAdvisors, getAdvisorsInternal, getConfigurationOnlyCopy, getInterceptorChainFactory, getInterceptors, getProxiedInterfaces, getTargetClass, getTargetSource, hasUserSuppliedInterfaces, indexOf, indexOf, isInterfaceProxied, isPreFiltered, reduceToAdvisorKey, removeAdvice, removeAdvisor, removeAdvisor, removeInterface, replaceAdvisor, setInterceptorChainFactory, setInterfaces, setPreFiltered, setTarget, setTargetClass, setTargetSource, toProxyConfigString, toString从类继承的方法 infra.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 infra.aop.framework.Advised
isExposeProxy, isFrozen, isProxyTargetClass, setExposeProxy
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
active
private boolean activeSet to true when the first AOP proxy has been created. -
aopProxyFactory
-
listeners
-
-
构造器详细资料
-
ProxyCreatorSupport
public ProxyCreatorSupport()Create a new ProxyCreatorSupport instance. -
ProxyCreatorSupport
Create a new ProxyCreatorSupport instance.- 参数:
aopProxyFactory- the AopProxyFactory to use
-
-
方法详细资料
-
setAopProxyFactory
Customize the AopProxyFactory, allowing different strategies to be dropped in without changing the core framework.Default is
DefaultAopProxyFactory, using dynamic JDK proxies or CGLIB proxies based on the requirements. -
getAopProxyFactory
Return the AopProxyFactory that this ProxyConfig uses. -
createAopProxy
Subclasses should call this to get a new AOP proxy. They should not create an AOP proxy withthisas an argument. -
activate
private void activate()Activate this proxy configuration. -
adviceChanged
protected void adviceChanged()Propagate advice change event to all AdvisedSupportListeners. -
isActive
protected final boolean isActive()Subclasses can call this to check whether any AOP proxies have been created yet. -
addListener
Add the given AdvisedSupportListener to this proxy configuration.- 参数:
listener- the listener to register
-
removeListener
Remove the given AdvisedSupportListener from this proxy configuration.- 参数:
listener- the listener to deregister
-