Author: dhanji
Date: Fri Feb 13 16:34:42 2009
New Revision: 845

Modified:
    trunk/servlet/src/com/google/inject/servlet/ServletModule.java

Log:
Javadoc fix, servlet scopes as singleton.

Modified: trunk/servlet/src/com/google/inject/servlet/ServletModule.java
==============================================================================
--- trunk/servlet/src/com/google/inject/servlet/ServletModule.java       
(original)
+++ trunk/servlet/src/com/google/inject/servlet/ServletModule.java      Fri Feb 
 
13 16:34:42 2009
@@ -73,8 +73,9 @@
     *       <b>serve("/my/*").with(MyServlet.class)</b>
     * </pre>
     *
-   * Every servlet is required to be a singleton and will implicitly be  
bound as one if it isn't
-   * already. Mapping a servlet that is bound under any other scope is an  
error.
+   * Every servlet (or filter) is required to be a singleton. If you  
cannot annotate the class
+   * directly, you should add a separate {...@code  
bind(..).in(Singleton.class)} rule elsewhere in
+   * your module. Mapping a servlet that is bound under any other scope is  
an error.
     *
     * <p>
     * <h4>Dispatch Order</h4>

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