[seam-commits] Seam SVN: r12434 - in modules/servlet/trunk/src/main: resources/META-INF and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Apr 12 16:34:48 EDT 2010
Author: nickarls
Date: 2010-04-12 16:34:47 -0400 (Mon, 12 Apr 2010)
New Revision: 12434
Added:
modules/servlet/trunk/src/main/resources/META-INF/web-fragment.xml
Modified:
modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/event/ServletEventListener.java
Log:
Use web-fragment for servlet registration
Modified: modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/event/ServletEventListener.java
===================================================================
--- modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/event/ServletEventListener.java 2010-04-12 09:18:59 UTC (rev 12433)
+++ modules/servlet/trunk/src/main/java/org/jboss/seam/servlet/event/ServletEventListener.java 2010-04-12 20:34:47 UTC (rev 12434)
@@ -63,13 +63,12 @@
import org.slf4j.LoggerFactory;
/**
- * A self-registering web-listener that propagates the events to the current CDI
+ * A servlet listener that propagates the events to the current CDI
* Bean Manager event queue
*
* @author Nicklas Karlsson
*
*/
- at WebListener
public class ServletEventListener implements HttpSessionActivationListener, HttpSessionAttributeListener, HttpSessionBindingListener, HttpSessionListener, ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, AsyncListener
{
@Inject
Added: modules/servlet/trunk/src/main/resources/META-INF/web-fragment.xml
===================================================================
--- modules/servlet/trunk/src/main/resources/META-INF/web-fragment.xml (rev 0)
+++ modules/servlet/trunk/src/main/resources/META-INF/web-fragment.xml 2010-04-12 20:34:47 UTC (rev 12434)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-fragment version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
+ <name>seamservlet</name>
+<!-- <ordering>-->
+<!-- <after>-->
+<!-- <name>weld</name>-->
+<!-- </after>-->
+<!-- </ordering>-->
+ <listener>
+ <listener-class>org.jboss.seam.servlet.event.ServletEventListener</listener-class>
+ </listener>
+
+</web-fragment>
More information about the seam-commits
mailing list