public class ProxyProcessorSupport extends ProxyConfig implements org.springframework.core.Ordered, org.springframework.beans.factory.BeanClassLoaderAware, AopInfrastructureBean
evaluateProxyInterfaces(java.lang.Class<?>, org.springframework.aop.framework.ProxyFactory)
algorithm.AbstractAdvisingBeanPostProcessor
,
AbstractAutoProxyCreator
,
Serialized FormConstructor and Description |
---|
ProxyProcessorSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateProxyInterfaces(Class<?> beanClass,
ProxyFactory proxyFactory)
Check the interfaces on the given bean class and apply them to the
ProxyFactory ,
if appropriate. |
int |
getOrder() |
protected ClassLoader |
getProxyClassLoader()
Return the configured proxy ClassLoader for this processor.
|
protected boolean |
isConfigurationCallbackInterface(Class<?> ifc)
Determine whether the given interface is just a container callback and
therefore not to be considered as a reasonable proxy interface.
|
protected boolean |
isInternalLanguageInterface(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.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setOrder(int order)
Set the ordering which will apply to this class's implementation
of Ordered, used when applying multiple processors.
|
void |
setProxyClassLoader(ClassLoader classLoader)
Set the ClassLoader to generate the proxy class in.
|
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
public void setOrder(int order)
Default value is Integer.MAX_VALUE
, meaning that it's non-ordered.
order
- the ordering valuepublic int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setProxyClassLoader(ClassLoader classLoader)
Default is the bean ClassLoader, i.e. the ClassLoader used by the containing
BeanFactory
for loading all bean classes.
This can be overridden here for specific proxies.
protected ClassLoader getProxyClassLoader()
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
protected void evaluateProxyInterfaces(Class<?> beanClass, ProxyFactory proxyFactory)
ProxyFactory
,
if appropriate.
Calls isConfigurationCallbackInterface(java.lang.Class<?>)
and isInternalLanguageInterface(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 beanprotected boolean isConfigurationCallbackInterface(Class<?> ifc)
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 checkprotected boolean isInternalLanguageInterface(Class<?> ifc)
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