Class AopNamespaceUtils

  • java.lang.Object
    • org.springframework.aop.config.AopNamespaceUtils

  • public abstract class AopNamespaceUtils
    extends java.lang.Object
    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.

    Rob Harrop, Juergen Hoeller, Mark Fisher
    See Also:
    • Field Detail


        public static final java.lang.String PROXY_TARGET_CLASS_ATTRIBUTE
        The proxy-target-class attribute as found on AOP-related XML tags.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AopNamespaceUtils

        public AopNamespaceUtils()
    • Method Detail

      • registerAutoProxyCreatorIfNecessary

        public static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                               org.w3c.dom.Element sourceElement)
      • registerAspectJAutoProxyCreatorIfNecessary

        public static void registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                                      org.w3c.dom.Element sourceElement)
      • registerAspectJAnnotationAutoProxyCreatorIfNecessary

        public static void registerAspectJAnnotationAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                                                org.w3c.dom.Element sourceElement)