That's not a singleton at all. That's a session-scoped bean. On Wed, May 26, 2010 at 12:45 PM, Marek Šabo <[email protected]> wrote: > Hi all, > > I wanted to try the @Singleton annotation in guice with sort of data > facade. What concerns me is the scope of the created singleton. Javadoc > says its a singleton per Injector. So if I create configured > InjectorHolder and return Injector in Application's init(), does it mean > there is a singleton for the whole application (thus for all sessions)? > > I would prefer per session based singleton, because the facade > construction is not short, I don't want to instantiate it every > time it's injected. Have you ever considered this -- any ideas? > > Regards, > > -- > Marek Šabo > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
