[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-commit] r2338 - in jetty/branches/jetty-8: . jetty-annotations/src/main/java/org/eclipse/jetty/annotations

Author: jbartel
Date: 2010-10-11 01:41:41 -0400 (Mon, 11 Oct 2010)
New Revision: 2338

Modified:
   jetty/branches/jetty-8/VERSION.txt
   jetty/branches/jetty-8/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/ContainerInitializerAnnotationHandler.java
Log:
327416 Change meaning of @HandlesTypes in line with latest interpretation by JSR315

Modified: jetty/branches/jetty-8/VERSION.txt
===================================================================
--- jetty/branches/jetty-8/VERSION.txt	2010-10-08 21:30:21 UTC (rev 2337)
+++ jetty/branches/jetty-8/VERSION.txt	2010-10-11 05:41:41 UTC (rev 2338)
@@ -4,6 +4,7 @@
  + 324493 Registration init parameter handling null check, setInitParameters additive
  + 324505 Request.login method must throw ServletException if it cant login
  + 324872 allow disabling listener restriction from using *Registration interfaces
+ + 327416 Change meaning of @HandlesTypes in line with latest interpretation by JSR315
 
 from jetty-7.2-SNAPSHOT
  + 314087 Simplified SelectorManager

Modified: jetty/branches/jetty-8/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/ContainerInitializerAnnotationHandler.java
===================================================================
--- jetty/branches/jetty-8/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/ContainerInitializerAnnotationHandler.java	2010-10-08 21:30:21 UTC (rev 2337)
+++ jetty/branches/jetty-8/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/ContainerInitializerAnnotationHandler.java	2010-10-11 05:41:41 UTC (rev 2338)
@@ -25,9 +25,11 @@
 import org.eclipse.jetty.util.log.Log;
 
 /**
- * HandlesTypesAnnotationHandler
+ * ContainerInitializerAnnotationHandler
  *
- * 
+ *  Discovers classes that contain the specified annotation, either at class or
+ *  method level. The specified annotation is derived from an @HandlesTypes on
+ *  a ServletContainerInitializer class. 
  */
 public class ContainerInitializerAnnotationHandler implements DiscoverableAnnotationHandler
 {
@@ -59,7 +61,7 @@
     public void handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation,
                              List<Value> values)
     {
-       //not valid on methods
+       _initializer.addAnnotatedTypeName(className);
     }
 
 }