Pointcut matching methods with annotated parameters
- by Sinuhe
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