public abstract class AopNamespaceUtils
extends java.lang.Object
aop
' namespace tags.
Only a single auto-proxy creator should be registered and multiple configuration
elements may wish to register different concrete implementations. As such this class
delegates to AopConfigUtils
which provides a simple escalation protocol.
Callers may request a particular auto-proxy creator and know that creator,
or a more capable variant thereof, will be registered as a post-processor.
AopConfigUtils
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
EXPOSE_PROXY_ATTRIBUTE
The
expose-proxy attribute as found on AOP-related XML tags. |
static java.lang.String |
PROXY_TARGET_CLASS_ATTRIBUTE
The
proxy-target-class attribute as found on AOP-related XML tags. |
Constructor and Description |
---|
AopNamespaceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
registerAspectJAnnotationAutoProxyCreatorIfNecessary(ParserContext parserContext,
org.w3c.dom.Element sourceElement) |
static void |
registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext,
org.w3c.dom.Element sourceElement) |
static void |
registerAutoProxyCreatorIfNecessary(ParserContext parserContext,
org.w3c.dom.Element sourceElement) |
private static void |
registerComponentIfNecessary(BeanDefinition beanDefinition,
ParserContext parserContext) |
private static void |
useClassProxyingIfNecessary(BeanDefinitionRegistry registry,
org.w3c.dom.Element sourceElement) |
public static final java.lang.String PROXY_TARGET_CLASS_ATTRIBUTE
proxy-target-class
attribute as found on AOP-related XML tags.private static final java.lang.String EXPOSE_PROXY_ATTRIBUTE
expose-proxy
attribute as found on AOP-related XML tags.public static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext, org.w3c.dom.Element sourceElement)
public static void registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext, org.w3c.dom.Element sourceElement)
public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary(ParserContext parserContext, org.w3c.dom.Element sourceElement)
private static void useClassProxyingIfNecessary(BeanDefinitionRegistry registry, @Nullable org.w3c.dom.Element sourceElement)
private static void registerComponentIfNecessary(@Nullable BeanDefinition beanDefinition, ParserContext parserContext)