Top Description Fields Constructors Methods
org.springframework.aop.config

public abstract Class AopNamespaceUtils

extends Object
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.parsing.BeanComponentDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.xml.ParserContext, org.springframework.lang.Nullable

Utility class for handling registration of auto-proxy creators used internally by the '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.

Authors
Rob Harrop, Juergen Hoeller, Mark Fisher
Since
2.0
See Also
AopConfigUtils

Field Summary

Modifier and TypeField and Description
private static final String
EXPOSE_PROXY_ATTRIBUTE

The expose-proxy attribute as found on AOP-related XML tags.

public static final String
PROXY_TARGET_CLASS_ATTRIBUTE

The proxy-target-class attribute as found on AOP-related XML tags.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
public static void
private static void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EXPOSE_PROXY_ATTRIBUTEback to summary
private static final String EXPOSE_PROXY_ATTRIBUTE

The expose-proxy attribute as found on AOP-related XML tags.

PROXY_TARGET_CLASS_ATTRIBUTEback to summary
public static final String PROXY_TARGET_CLASS_ATTRIBUTE

The proxy-target-class attribute as found on AOP-related XML tags.

Constructor Detail

AopNamespaceUtilsback to summary
public AopNamespaceUtils()

Method Detail

registerAspectJAnnotationAutoProxyCreatorIfNecessaryback to summary
public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary(ParserContext parserContext, Element sourceElement)
registerAspectJAutoProxyCreatorIfNecessaryback to summary
public static void registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext, Element sourceElement)
registerAutoProxyCreatorIfNecessaryback to summary
public static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext, Element sourceElement)
registerComponentIfNecessaryback to summary
private static void registerComponentIfNecessary(BeanDefinition beanDefinition, ParserContext parserContext)
useClassProxyingIfNecessaryback to summary
private static void useClassProxyingIfNecessary(BeanDefinitionRegistry registry, Element sourceElement)