Top Description Constructors Methods
org.springframework.aop.config

public Class AopNamespaceHandler

extends NamespaceHandlerSupport
Class Inheritance
Imports
org.springframework.aop.aspectj.AspectJExpressionPointcut, org.springframework.beans.factory.xml.BeanDefinitionParser, .NamespaceHandlerSupport

NamespaceHandler for the aop namespace.

Provides a org.springframework.beans.factory.xml.BeanDefinitionParser for the <aop:config> tag. A config tag can include nested pointcut, advisor and aspect tags.

The pointcut tag allows for creation of named AspectJExpressionPointcut beans using a simple syntax:

<aop:pointcut id="getNameCalls" expression="execution(* *..ITestBean.getName(..))"/>

Using the advisor tag you can configure an org.springframework.aop.Advisor and have it applied to all relevant beans in you org.springframework.beans.factory.BeanFactory automatically. The advisor tag supports both in-line and referenced Pointcuts:

<aop:advisor id="getAgeAdvisor"
    pointcut="execution(* *..ITestBean.getAge(..))"
    advice-ref="getAgeCounter"/>

<aop:advisor id="getNameAdvisor"
    pointcut-ref="getNameCalls"
    advice-ref="getNameCounter"/>
Authors
Rob Harrop, Adrian Colyer, Juergen Hoeller
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
init()

Implements org.springframework.beans.factory.xml.NamespaceHandler.init.

Register the BeanDefinitionParsers for the 'config', 'spring-configured', 'aspectj-autoproxy' and 'scoped-proxy' tags.
Inherited from org.springframework.beans.factory.xml.NamespaceHandlerSupport:
decorateparseregisterBeanDefinitionDecoratorregisterBeanDefinitionDecoratorForAttributeregisterBeanDefinitionParser

Constructor Detail

AopNamespaceHandlerback to summary
public AopNamespaceHandler()

Method Detail

initback to summary
public void init()

Implements org.springframework.beans.factory.xml.NamespaceHandler.init.

Register the BeanDefinitionParsers for the 'config', 'spring-configured', 'aspectj-autoproxy' and 'scoped-proxy' tags.

Annotations
@Override