On Wed, Jan 14, 2009 at 7:23 PM, Dhanji R. Prasanna <[email protected]>wrote:
> This code is not thread-safe. =( > This is exactly why encourage people to use Guice singletons and discourage > the traditional singleton (anti-)pattern. > Can you explain (or a use case) where using an Enum as Singleton would be an issue. Even under a single classloader the enum isn't thread safe? I'm not that opposed to forcing my end user of the jar to use Guice, but I was hoping to maybe avoid it. My end user will be deploying their own jar into tibco, and I'm not sure where I would tell them to put some code to start the injection process. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
