Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Interface Constructors

If I use the pointcut:

      execution (*.new(..));

I will advise the execution of all constructors including interface types.
Can I exclude interface types without having to enumerate them? Using the
following scope (interface types do not descend from Object):

       within(java.lang.Object+)

does not work.

Thanks.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

The IBM Academy is sponsoring a conference on Aspect-Oriented Software
Development, 3rd-4th September, Yorktown, NY.



Back to the top