类 ProxyProcessorSupport
java.lang.Object
cn.taketoday.aop.framework.ProxyConfig
cn.taketoday.aop.framework.ProxyProcessorSupport
- 所有已实现的接口:
AopInfrastructureBean,Aware,BeanClassLoaderAware,Ordered,Serializable
public class ProxyProcessorSupport
extends ProxyConfig
implements Ordered, BeanClassLoaderAware, AopInfrastructureBean
Base class with common functionality for proxy processors, in particular
ClassLoader management and the
evaluateProxyInterfaces(java.lang.Class<?>, cn.taketoday.aop.framework.ProxyFactory) algorithm.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang 2021/11/28 17:10
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidevaluateProxyInterfaces(Class<?> beanClass, ProxyFactory proxyFactory) Check the interfaces on the given bean class and apply them to theProxyFactory, if appropriate.intgetOrder()protected ClassLoaderReturn the configured proxy ClassLoader for this processor.protected booleanDetermine whether the given interface is just a container callback and therefore not to be considered as a reasonable proxy interface.protected booleanisInternalLanguageInterface(Class<?> ifc) Determine whether the given interface is a well-known internal language interface and therefore not to be considered as a reasonable proxy interface.voidsetBeanClassLoader(ClassLoader classLoader) voidsetOrder(int order) Set the ordering which will apply to this processor's implementation ofOrdered, used when applying multiple processors.voidsetProxyClassLoader(ClassLoader classLoader) Set the ClassLoader to generate the proxy class in.从类继承的方法 cn.taketoday.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
-
构造器详细资料
-
ProxyProcessorSupport
public ProxyProcessorSupport()
-
-
方法详细资料
-
setOrder
public void setOrder(int order) Set the ordering which will apply to this processor's implementation ofOrdered, used when applying multiple processors.The default value is
Ordered.LOWEST_PRECEDENCE, meaning non-ordered.- 参数:
order- the ordering value
-
getOrder
public int getOrder() -
setProxyClassLoader
Set the ClassLoader to generate the proxy class in.Default is the bean ClassLoader, i.e. the ClassLoader used by the containing
BeanFactoryfor loading all bean classes.This can be overridden here for specific proxies. -
getProxyClassLoader
Return the configured proxy ClassLoader for this processor. -
setBeanClassLoader
- 指定者:
setBeanClassLoader在接口中BeanClassLoaderAware
-
evaluateProxyInterfaces
Check the interfaces on the given bean class and apply them to theProxyFactory, if appropriate.Calls
isConfigurationCallbackInterface(java.lang.Class<?>)andisInternalLanguageInterface(java.lang.Class<?>)to filter for reasonable proxy interfaces, falling back to a target-class proxy otherwise.- 参数:
beanClass- the class of the beanproxyFactory- the ProxyFactory for the bean
-
isConfigurationCallbackInterface
Determine whether the given interface is just a container callback and therefore not to be considered as a reasonable proxy interface.If no reasonable proxy interface is found for a given bean, it will get proxied with its full target class, assuming that as the user's intention.
- 参数:
ifc- the interface to check- 返回:
- whether the given interface is just a container callback
-
isInternalLanguageInterface
Determine whether the given interface is a well-known internal language interface and therefore not to be considered as a reasonable proxy interface.If no reasonable proxy interface is found for a given bean, it will get proxied with its full target class, assuming that as the user's intention.
- 参数:
ifc- the interface to check- 返回:
- whether the given interface is an internal language interface
-