From: markt Date: Mon, 7 Dec 2009 14:25:21 +0000 (+0000) Subject: Add annotation support for WebListener X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=11901b4435ae0fe6db912a16d3b8b837c5b78056;p=tomcat7.0 Add annotation support for WebListener git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@887931 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/startup/ContextConfig.java b/java/org/apache/catalina/startup/ContextConfig.java index bdb393c62..fcd383298 100644 --- a/java/org/apache/catalina/startup/ContextConfig.java +++ b/java/org/apache/catalina/startup/ContextConfig.java @@ -1673,6 +1673,8 @@ public class ContextConfig 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