Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Adding methods to all subclasses

You could advise calls to the Swing methods, as long as they're not being
done through reflection.

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Tomas KRAMAR
Sent: Thursday, October 04, 2007 10:15 AM
To: aspectj-users
Subject: [aspectj-users] Adding methods to all subclasses

Hello,

I need to add methods to all subclasses of various swing components.
The simplest solution seems to be simply adding those methods to the
component itself, but that would require weaving the swing classes;
something I cannot afford if I want to keep the application
distributable.

I hoped I could use a similar construction like:

public void JFrame+.doSomething() {}

Is it possible to use some kind of pattern instead of a class name,
when introducing new methods?

Regards
Tomas Kramar
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top