Pointcut matching methods with annotated parameters

Posted by Sinuhe on Stack Overflow See other posts from Stack Overflow or by Sinuhe
Published on 2010-05-04T15:53:23Z Indexed on 2010/05/04 15:58 UTC
Read the original article Hit count: 211

Filed under:
|
|
|
|

I need to create an aspect with a pointcut matching a method if: - Is public - Its class is annotated with @Controller - One of its parameters (can have many) is annotated with @MyParamAnnotation.

I think the first two conditions are easy, but I don't know if its possible to accomplish the third with Spring. If it is not, maybe I can change it into: - One of its parameters is an instance of type com.me.MyType (or implements some interface)

Do you think it's possible to achieve this? And will performance be good?

Thanks

© Stack Overflow or respective owner

Related posts about spring

Related posts about aop