Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Identifying source thread

Hello everybody,

I am creating a graphical Java debugging program using AspectJ. One of
the features I have completed is the ability to pause the program
during execution, by calling "wait()" on the "thisJoinPoint.getThis()"
object.

However, if the user is debugging a Swing application, he / she will
have the ability to pause execution during a "paintComponent(Graphics
g)" method (supposing they have extended a Swing component and wish to
debug that section).

Since this is on the AWT Event Dispatch Thread, pausing execution here
completely locks up controls to my debugging application!

My quesion is: is there any way in AspectJ to identify which thread a
certain method is being called upon, so I can explicity say "pausing
is disabled on this thread"?

Thanks


Back to the top