Hey Ian -- Singletons are global per the injector that created then. That's neither per module nor per JVM -- rather, it's per the collection of modules that build up the Injector.
sam On Fri, Jan 3, 2014 at 4:48 PM, Ian Clarke <[email protected]> wrote: > I've been thinking about how to use Guice within a library, but realized > that singletons might pose a problem here if they are global to a JVM. > > My hope is that objects declared with scope SINGLETON are local either to > a module, or an instance of Injector. Is this the case? > > Ian. > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
