anyone have an idea of how doing that :
I have two pointcut, one generic and an one specific. The two pointcuts will intercept the same method invocation but I want to just call the specific pointcut. Someone Have an idea.
Why I want to do that : imagine a spring repository, I want to intercept all find call we a generic pointcut and execute some code to check access. In Some case, I will redefined new find methods with other arguments, access rules. This new queries will be matched automaticaly by the generic pointcut. But I need a different pointcut in that case to match the specific query.
for example I need something like that :
@Pointcut("execution(public * *..*Repository.*(..))")
@Pointcut("execution(public * *..*Repository.find*(..))")
for all methods of my repository I will use the first pointcut but for all find methods I will use the second one. I want that the Overloading will be automatic. I have try @Before("pointcut1 && ! pointcut2") but if I want to make a third pointcut I will need to modify the @Before expression.
Thank