Reputation: 11445
I want to advice a particular method in all class that extends or implements a particular interface or abstract class. How can this be achieved using spring aop 2.5.
Upvotes: 4
Views: 3387
Reputation: 38777
Using the pointcut expression:
within(some.package.MyInterface+)
The plus (+
) means "this class/interface and all subclasses/implementors".
Upvotes: 6