<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd">
	<bean id="wsword" class="ee.springdemo.WoodenSword" />
	<bean id="noob" class="ee.springdemo.Newbie" scope="prototype">
		<constructor-arg ref="wsword" />
	</bean>
	<bean id="logger" class="ee.springdemo.Logger" />
	<aop:config>
		<aop:aspect ref="logger">
			<aop:before pointcut="execution(* *.setName(String))
and this(object)"
				method="logItWithObject" arg-names="object" />
		</aop:aspect>
		<aop:aspect ref="logger">
			<aop:after-returning pointcut="execution(* *.getName())
and target(object)"
				returning="retVal" method="logItAndDetectObject" arg-names="object,retVal" />
		</aop:aspect>
	</aop:config>
</beans>
