From 11901b4435ae0fe6db912a16d3b8b837c5b78056 Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 7 Dec 2009 14:25:21 +0000 Subject: [PATCH] Add annotation support for WebListener git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@887931 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/startup/ContextConfig.java | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0