[weld-commits] Weld SVN: r6702 - archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Sat Jul 17 14:19:11 EDT 2010
Author: sboscarine
Date: 2010-07-17 14:19:10 -0400 (Sat, 17 Jul 2010)
New Revision: 6702
Added:
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsActivator.java
Removed:
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsConfig.java
Log:
minor refactor, updated comments
Copied: archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsActivator.java (from rev 6701, archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsConfig.java)
===================================================================
--- archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsActivator.java (rev 0)
+++ archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsActivator.java 2010-07-17 18:19:10 UTC (rev 6702)
@@ -0,0 +1,14 @@
+package com.mycompany;
+
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.core.Application;
+
+/**
+ * This empty, annotated {@link Application} class is the Java EE 6 "no XML"
+ * approach to activate JAX-RS. Resources are served from the servlet path
+ * specified in the @ApplicationPath annotation.
+ *
+ * NOTE As of JBoss AS 6.0.0.M3, JAX-RS does not activate properly.
+ */
+ at ApplicationPath("/rest")
+public class JaxRsActivator extends Application{/* left blank intentionally */}
Deleted: archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsConfig.java
===================================================================
--- archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsConfig.java 2010-07-17 18:05:40 UTC (rev 6701)
+++ archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/JaxRsConfig.java 2010-07-17 18:19:10 UTC (rev 6702)
@@ -1,7 +0,0 @@
-package com.mycompany;
-
-import javax.ws.rs.ApplicationPath;
-import javax.ws.rs.core.Application;
-
- at ApplicationPath("/rest")
-public class JaxRsConfig extends Application {}
More information about the weld-commits
mailing list