On Fri, Jun 24, 2011 at 3:03 AM, Aekold <[email protected]> wrote: > SwingWorker is supposed to be constructed in EDT too,
Really? I can't find anything that supports that, and a sentence in the javadoc<http://download.oracle.com/javase/6/docs/api/javax/swing/SwingWorker.html>, "Often, the Current thread is the Event Dispatch Thread," implies that sometimes it isn't. > So you do not need to create different injectors. > Agreed. If you really want to inject Swing components and ensure they are constructed in the EDT, consider a custom Scope. http://pastebin.com/Uah91b09 --tim -- You received this message because you are subscribed to the Google Groups "google-guice" group. 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.
