I'm using "method interceptor" mechanisms with Guice 1.0 and I wish to
know if it is thread-safe? (I have some strange behaviours in
multithreading environment)
Regards,
Anthony MÜLLER
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
Is it fixed in Guice 2.0?
Regards,
Anthony MÜLLER
2011/1/24 Fred Faber <ffa...@faiser.com>:
Anthony
2011/1/24 Colin Decker <cgde...@gmail.com>:
Note: Every servlet (or filter) is required to be a @Singleton. If you cannot annotate the class directly, you must bind it using bind(..).in(Singleton.class), separate to the filter() or servlet() rules. Mapping under any other scope is an error. This is to maintain consistency with the Servlet specification. Guice Servlet does not support the deprecated SingleThreadModel. http://code.google.com/p/google-guice/wiki/ServletModule
IMHO, this might be a confusion/consistency thing.
With guice-servlet, binding a servlet requires that it be bound in singleton scope, either explicitly or by annotation.Note: Every servlet (or filter) is required to be a @Singleton. If you cannot annotate the class directly, you must bind it using bind(..).in(Singleton.class), separate to the filter() or servlet() rules. Mapping under any other scope is an error. This is to maintain consistency with the Servlet specification. Guice Servlet does not support the deprecated SingleThreadModel. http://code.google.com/p/google-guice/wiki/ServletModuleIt would make sense to be consistent for the method interceptor and require the same thing, this may reduce confusion.