Class ProxyProcessorSupport
- All Implemented Interfaces:
- Serializable,- AopInfrastructureBean,- Aware,- BeanClassLoaderAware,- Ordered
- Direct Known Subclasses:
- AbstractAdvisingBeanPostProcessor,- AbstractAutoProxyCreator
evaluateProxyInterfaces(java.lang.Class<?>, org.springframework.aop.framework.ProxyFactory) algorithm.- Since:
- 4.1
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidevaluateProxyInterfaces(Class<?> beanClass, ProxyFactory proxyFactory) Check the interfaces on the given bean class and apply them to theProxyFactory, if appropriate.intgetOrder()Get the order value of this object.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) Callback that supplies the beanclass loaderto a bean instance.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.Methods inherited from class org.springframework.aop.framework.ProxyConfigcopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
- 
Constructor Details- 
ProxyProcessorSupportpublic ProxyProcessorSupport()
 
- 
- 
Method Details- 
setOrderpublic 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.- Parameters:
- order- the ordering value
 
- 
getOrderpublic int getOrder()Description copied from interface:OrderedGet the order value of this object.Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startupvalues).Same order values will result in arbitrary sort positions for the affected objects. 
- 
setProxyClassLoaderSet 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.
- 
getProxyClassLoaderReturn the configured proxy ClassLoader for this processor.
- 
setBeanClassLoaderDescription copied from interface:BeanClassLoaderAwareCallback that supplies the beanclass loaderto a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean'sInitializingBean.afterPropertiesSet()method or a custom init-method.- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
- Parameters:
- classLoader- the owning class loader
 
- 
evaluateProxyInterfacesCheck 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.- Parameters:
- beanClass- the class of the bean
- proxyFactory- the ProxyFactory for the bean
 
- 
isConfigurationCallbackInterfaceDetermine 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. - Parameters:
- ifc- the interface to check
- Returns:
- whether the given interface is just a container callback
 
- 
isInternalLanguageInterfaceDetermine 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. - Parameters:
- ifc- the interface to check
- Returns:
- whether the given interface is an internal language interface
 
 
-