If I understand you correctly, then this would work:
Code:
@Pointcut("execution(* com.xxx.xxx.MyBusinessInterface+.*(..))")
But what I want is one more indirection: MyBusinessImpl implements MyBusinessInterface which in turn is annotated as BusinessInterface, and I want my pointcut to match all implementations of all interfaces annotated to be BusinessInterfaces.
I could use a naming convention like this:
Code:
@Pointcut("execution(* com.xxx.xxx.*BusinessInterface+.*(..))")
But that would make the names of my business interfaces quite long winded. And eventually I would have to fetch the values of the annotation by hand.