站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

AopNamespaceUtils (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.aop.config
Class AopNamespaceUtils

java.lang.Object
  extended by org.springframework.aop.config.AopNamespaceUtils

public abstract class AopNamespaceUtils
extends Object

Utility class for handling registration of auto-proxy creators used internally by the 'aop' namespace tags.

Only a single auto-proxy creator can be registered and multiple tags may wish to register different concrete implementations. As such this class wraps a simple escalation protocol, allowing clases to request a particular auto-proxy creator and know that class, or a subclass thereof, will eventually be resident in the application context.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Field Summary
static String ASPECTJ_AUTO_PROXY_CREATOR_CLASS_NAME
          The class name of the 'AnnotationAwareAspectJAutoProxyCreator' class.
static String AUTO_PROXY_CREATOR_BEAN_NAME
          The bean name of the internally managed auto-proxy creator.
 
Constructor Summary
AopNamespaceUtils()
           
 
Method Summary
static void forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry)
           
static void registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext, Object sourceElement)
           
static void registerAtAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext, Object sourceElement)
           
static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext, Object sourceElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_PROXY_CREATOR_BEAN_NAME

public static final String AUTO_PROXY_CREATOR_BEAN_NAME
The bean name of the internally managed auto-proxy creator.

See Also:
Constant Field Values

ASPECTJ_AUTO_PROXY_CREATOR_CLASS_NAME

public static final String ASPECTJ_AUTO_PROXY_CREATOR_CLASS_NAME
The class name of the 'AnnotationAwareAspectJAutoProxyCreator' class. Only available with AspectJ and Java 5.

See Also:
Constant Field Values
Constructor Detail

AopNamespaceUtils

public AopNamespaceUtils()
Method Detail

registerAutoProxyCreatorIfNecessary

public static void registerAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                       Object sourceElement)

registerAspectJAutoProxyCreatorIfNecessary

public static void registerAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                              Object sourceElement)

registerAtAspectJAutoProxyCreatorIfNecessary

public static void registerAtAspectJAutoProxyCreatorIfNecessary(ParserContext parserContext,
                                                                Object sourceElement)

forceAutoProxyCreatorToUseClassProxying

public static void forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.