Quote Originally Posted by gpoirier
I meant slower Execution. Using a regular expression is slower then just returning true. Might not be a huge difference, especially if the method's gonna do DB stuff, but there's no real gain for using RegexpMethodPointcutAdvisor when you want to match all methods. It also adds uneeded configuration code.
I am sure about the RegexpMethodPointcutAdvisor , I have not been aware of regular expression as the word . Do you mean the following snippet
return new MethodMatcher() {
public boolean matches(Method arg0, Class arg1) {
if (arg0.getName().indexOf("meth") == 0)
return true;
return false;
}
can be replaced by
return new MethodMatcher() {
public boolean matches(Method arg0, Class arg1) {
//if (arg0.getName().indexOf("meth") == 0)
return true;
}
Rgds
Vicky