user321068
user321068

Reputation:

Pointcut matching types with certain parent class

Is it possible in Spring AOP to implement a pointcut that matches types with a certain parent class?

I'd like to do it with the @AfterReturning annotation.

Upvotes: 2

Views: 2456

Answers (1)

Romain
Romain

Reputation: 12819

In AspectJ you can use some.package.ParentClass+ to represent "all classes that extend some.package.ParentClass".

Upvotes: 6

Related Questions