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 Form| Constructor 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 processor'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, toStringpublic void setOrder(int order)
Ordered, used when applying multiple processors.
The default value is Ordered.LOWEST_PRECEDENCE, meaning non-ordered.
order - the ordering valuepublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setProxyClassLoader(@Nullable
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.
@Nullable protected ClassLoader getProxyClassLoader()
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwareprotected 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