Yes, I gather that is correct term for this. What would be the proper way to implement it? Just put a referrence with @Inject in the custom WebSession?
Anyway, ad my first question, I suppose then the singleton would be in the scope of whole application thus needing synchronization. Regards On 05/26/2010 06:48 PM, James Carman wrote: > 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] > > > -- Marek Šabo Server Manager Club SU CVUT Buben Bubenečská Kolej (421) XMPP: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
