Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Limiting depth of pointcut for subclasses

Title: Limiting depth of pointcut for subclasses

Hi

Is there a short and easy way of shortening the depth of a pointcut? The scenario is that I advise the construction of objects that implement an interface. However I only want to advice the first child in the hierarchy of implementation. I.E Interface A extends interface I, Interface A1 extends interface A. Class C implements A and class C1 implements A1. I only want to advice A (i.e construction of C). First challenge is that interface I is the only known interface at design time.

Hermod

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Back to the top