Hi Guys,
I cannot find an AspectJ Pointcut expression that would match classes which is indirectly annotated. An example would be appropriate:
Say I have created this annotation:
... and added it to this custom stereotype:Code:@Retention(RUNTIME) public @Interface Loggable{}
... and that I am spraying my annotation around like this:Code:@Component @Retention(RUNTIME) @Loggable <------- public @Interface MyBusinessService {}
The question is then: Is it possible to create an aspect that would be able to advice MyBusinessService with @Loggable behavior?. Obviously I have tried the following pointcut expression without luck: "@within(acme.Loggable)". That however doesn't do the magic...Code:@MyBusinessService public class Victim{}


Reply With Quote
