I'm not having success with it, and I'm not sure why.
I used this snippet as an example:
Code:
@Around("execution(List<Account> find*(..)) &&" +
"com.xyz.myapp.SystemArchitecture.inDataAccessLayer() && " +
"args(accountHolderNamePattern)")
public Object preProcessQueryPattern(ProceedingJoinPoint pjp, String accountHolderNamePattern)
...
http://static.springsource.org/sprin...-advice-params
But my equivalent advice does not work:
Code:
@Around("execution(* project.service..*.*(..)) && within(project.web..*)")
I enabled Spring logging, but it does not do any useful logging about aspects during method call. Only my unrestrictive 'execution' works if used alone. My web controllers are also managed by Spring.
I'll try some more, but if you have any good tip on this, I appreciate.
Thanks