类 AopNamespaceHandler
- java.lang.Object
- org.springframework.beans.factory.xml.NamespaceHandlerSupport
- org.springframework.aop.config.AopNamespaceHandler
- 所有已实现的接口:
NamespaceHandler
public class AopNamespaceHandler extends NamespaceHandlerSupport
NamespaceHandlerfor theaopnamespace.Provides a
BeanDefinitionParserfor the<aop:config>tag. Aconfigtag can include nestedpointcut,advisorandaspecttags.The
pointcuttag allows for creation of namedAspectJExpressionPointcutbeans using a simple syntax:<aop:pointcut id="getNameCalls" expression="execution(* *..ITestBean.getName(..))"/>
Using the
advisortag you can configure anAdvisorand have it applied to all relevant beans in youBeanFactoryautomatically. Theadvisortag supports both in-line and referencedPointcuts:<aop:advisor id="getAgeAdvisor" pointcut="execution(* *..ITestBean.getAge(..))" advice-ref="getAgeCounter"/> <aop:advisor id="getNameAdvisor" pointcut-ref="getNameCalls" advice-ref="getNameCounter"/>- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Adrian Colyer, Juergen Hoeller
构造器概要
构造器 构造器 说明 AopNamespaceHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidinit()Register theBeanDefinitionParsersfor the 'config', 'spring-configured', 'aspectj-autoproxy' and 'scoped-proxy' tags.从类继承的方法 org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
构造器详细资料
AopNamespaceHandler
public AopNamespaceHandler()
方法详细资料
init
public void init()
Register theBeanDefinitionParsersfor the 'config', 'spring-configured', 'aspectj-autoproxy' and 'scoped-proxy' tags.