public abstract class AopConfigUtils
extends java.lang.Object
Only a single auto-proxy creator can be registered yet multiple concrete
implementations are available. Therefore this class wraps a simple escalation
protocol, allowing classes to request a particular auto-proxy creator and know
that class, or a subclass thereof
, will eventually be resident
in the application context.
AopNamespaceUtils
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.Class> |
APC_PRIORITY_LIST
Stores the auto proxy creator classes in escalation order.
|
static java.lang.String |
AUTO_PROXY_CREATOR_BEAN_NAME
The bean name of the internally managed auto-proxy creator.
|
Constructor and Description |
---|
AopConfigUtils() |
public static final java.lang.String AUTO_PROXY_CREATOR_BEAN_NAME
private static final java.util.List<java.lang.Class> APC_PRIORITY_LIST
public static BeanDefinition registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
public static BeanDefinition registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, java.lang.Object source)
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
public static BeanDefinition registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, java.lang.Object source)
public static BeanDefinition registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry)
public static BeanDefinition registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, java.lang.Object source)
public static void forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry)
static void forceAutoProxyCreatorToExposeProxy(BeanDefinitionRegistry registry)
private static BeanDefinition registerOrEscalateApcAsRequired(java.lang.Class cls, BeanDefinitionRegistry registry, java.lang.Object source)
private static int findPriorityForClass(java.lang.Class clazz)
private static int findPriorityForClass(java.lang.String className)