The schema-based aop config example at http://static.springframework.org/sp...-schema-params doesnt work unless a few changes were made.
- Change all fooName to name
- Change the advice config like so:
<aop:around pointcut-ref="theExecutionOfSomeFooServiceMethod"
method="profile" arg-names="call,name,age"/>
Does this mean that the JoinPoint param also has to be explicitly declared for methods to be matched up correctly? Or am I missing something?
FYI the Foo implementation I provided was:
package x.y.service;
public class Foo {
private String name;
private int age;
public Foo (String name, int age)
{
this.name=name;
this.age=age;
}
public String getName() {return name;}
public int getAge() {return age;}
}


Reply With Quote
. 

