I have a custom scope (IpcConnectionScope with custom scope annotation 
@IpcConnectionScoped) and a @Provides method which
looks like this:

   @Provides
   @IpcConnectionScoped
   Session getPrimarySession(HibernateService service) {
       return service.get();
   }

During application startup guice fails because it calls my custom scope
which is indeed out of a scoping block.
Note: No eagerly loaded singleton in my application needs a Session during
startup. When i removed the method above, everything works fine.

--
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.

Reply via email to