Author: dhanji
Date: Fri Mar 27 03:32:56 2009
New Revision: 912

Modified:
    wiki/ServletModule.wiki

Log:
Edited wiki page through web user interface.

Modified: wiki/ServletModule.wiki
==============================================================================
--- wiki/ServletModule.wiki     (original)
+++ wiki/ServletModule.wiki     Fri Mar 27 03:32:56 2009
@@ -33,7 +33,7 @@

  = The Binding Language =

-Think of the `ServletModule` as an in-code replacement for the `web.xml`  
deployment descriptor. Filters and servlets are configured here using  
normal Java method calls. Here is a typical example of registering a filter  
when creating your Guice injector:
+Think of the `ServletModule` as an in-code replacement for the `web.xml`  
deployment descriptor. Filters and servlets are configured here using  
normal Java method calls. Here is a typical example of registering a  
servlet when creating your Guice injector:

  {{{
     Guice.createInjector(..., new ServletModule() {
@@ -59,7 +59,7 @@

  This will route every incoming request through `MyFilter`, and then  
continue to any other matching filters before finally being dispatched to a  
servlet for processing.

-_Note: Every servlet (or filter) is required to be a `...@singleton`. If you  
cannot annotate the class directly, you must bind it separtely 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.
+_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`._

  == Dispatch Order ==

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to