You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/11/27 11:09:46 UTC

svn commit: r1414057 - /tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java

Author: markt
Date: Tue Nov 27 10:09:46 2012
New Revision: 1414057

URL: http://svn.apache.org/viewvc?rev=1414057&view=rev
Log:
Populate the SCI Javadoc

Modified:
    tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java

Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java?rev=1414057&r1=1414056&r2=1414057&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java (original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContainerInitializer.java Tue Nov 27 10:09:46 2012
@@ -19,18 +19,35 @@ package javax.servlet;
 import java.util.Set;
 
 /**
+ * ServletContainerInitializers (SCIs) are registered via an entry in the
+ * file META-INF/services/javax.servlet.ServletContainerInitializer that must be
+ * included in the JAR file that contains the SCI implementation.
+ * <p>
+ * SCIs processing is performed regardless of the setting of metadata-complete.
+ * SCI processing can be controlled be JAR file via fragment ordering. If an
+ * absolute ordering is defined, the only those fragments included in the
+ * ordering will be scanned. To disable SCI processing completely, an empty
+ * absolute ordering may be defined.
+ * <p>
+ * SCIs register an interest in annotations (class, method or field) or types
+ * via the {@link javax.servlet.annotation.HandlesTypes} annotation which is
+ * added to the {@link #onStartup(Set, ServletContext)} method.
+ *
  * @since Servlet 3.0
- * $Id$
- * TODO SERVLET3 - Add comments
  */
 public interface ServletContainerInitializer {
     
     /**
-     * 
-     * @param c
-     * @param ctx
-     * @throws ServletException
+     * Receives notification during startup of a web application of the classes
+     * within the web application that matched the criteria defined via the
+     * {@link javax.servlet.annotation.HandlesTypes} annotation.
+     *
+     * @param c     The (possibly null) set of classes that met the specified
+     *              criteria
+     * @param ctx   The ServletContext of the web application in which the
+     *              classes were discovered
+     *
+     * @throws ServletException If an error occurs
      */
-    public void onStartup(Set<Class<?>> c, ServletContext ctx)
-    throws ServletException;
+    void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org