-
1. Re: Pointcut intercepting methods with annotated arguments
flavia.rainone Mar 27, 2009 10:55 AM (in response to jarr)Hi!
Unfortunately, we currently don't support this feature.
I have created a Jira issue for adding this:
https://jira.jboss.org/jira/browse/JBAOP-711 -
2. Re: Pointcut intercepting methods with annotated arguments
kabirkhan Mar 27, 2009 1:57 PM (in response to jarr)Actually we do and we have test http://anonsvn.jboss.org/repos/jbossas/branches/Branch_AOP_1_5/aop/src/resources/test/annotatedparams/jboss-aop.xml
I've closed the JIRA issue -
3. Re: Pointcut intercepting methods with annotated arguments
flavia.rainone Mar 27, 2009 3:03 PM (in response to jarr)Ooops...
Sorry, my mistake! -
4. Re: Pointcut intercepting methods with annotated arguments
jarr Mar 27, 2009 3:23 PM (in response to jarr)Thanks for reply.
Actually this test http://anonsvn.jboss.org/repos/jbossas/branches/Branch_AOP_1_5/aop/src/resources/test/annotatedparams/jboss-aop.xml is not for the case I was asking about.
In this test interceptor intercepts methods with with parameter that have an annotation on its type.
But I would like to intercept methods with annotation on method parameter itself. Something like this:void someMethod(@NotNull String message) { ... }
Here annotation is not on the type of parameter, but on the parameter itself.
Such annotations are possible and are sometimes used, for example in Spring MVC 2.5 for mapping request parameters to method parameters:
http://static.springframework.org/spring/docs/2.5.x/reference/mvc.html#mvc-ann-requestparam
Regards
Jarek -
5. Re: Pointcut intercepting methods with annotated arguments
kabirkhan Mar 30, 2009 5:32 AM (in response to jarr)I've reopened the issue