Author: markt
Date: Mon Dec 7 14:25:21 2009
New Revision: 887931
URL: http://svn.apache.org/viewvc?rev=887931&view=rev
Log:
Add annotation support for WebListener
Modified:
tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
Modified: tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=887931&r1=887930&r2=887931&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java Mon Dec 7
14:25:21 2009
@@ -1673,6 +1673,8 @@
String type = ae.getAnnotationType();
if ("Ljavax/servlet/annotation/WebServlet;".equals(type)) {
processAnnotationWebServlet(className, ae, fragment);
+ }else if ("Ljavax/servlet/annotation/WebListener;".equals(type)) {
+ fragment.addListener(className);
} else {
// TODO SERVLET 3 - Other annotations
// Unknown annotation - ignore
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]