Thank you for the help!

I resolved that by having MyBackgorundThreadInterface implementation 
instantiated by guice inside the EDT, since it is singleton and as such it 
is instantiated eagerly. Then, when I call its methods inside 
MySwingWorker.doInBackground(), as you say, such methods actually run inside 
the SwingWorker thread (I verified it with AOP interceptors, what a good 
stuff they are), hence without interfering with the EDT.

Still, I am not sure whether instantiating MyBackgroundThreadInterface 
inside the EDT is a good idea... I guess that it is not that bad, if you 
make sure its methods will never be called inside the EDT...

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/GBAn0QFV2RsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to