From 40914e052a09892e62f19b2be1e024b796aedace Mon Sep 17 00:00:00 2001 From: ulrich <undisclosed> Date: Fri, 13 Feb 2015 09:28:47 +0000 Subject: [PATCH] WaechterRS hinzugefuegt --- src/de/uhilger/transit/web/WebApp.java | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/de/uhilger/transit/web/WebApp.java b/src/de/uhilger/transit/web/WebApp.java index f00d841..dd054d9 100644 --- a/src/de/uhilger/transit/web/WebApp.java +++ b/src/de/uhilger/transit/web/WebApp.java @@ -38,20 +38,24 @@ * Die Klasse WebApp implementiert die Schnittstell ServletContextListener. * Wird sie als Listener im Deployment Descriptor einer Webanwendung eingebunden, * werden ihre Funktionen zum Start und zum Ende ihrer Laufzeit wirksam. + * + * @deprecated class is obsolete, do not use anymore */ +@Deprecated public class WebApp implements ServletContextListener { - public static final String P_LOGGERNAME = "loggername"; + /*public static final String P_LOGGERNAME = "loggername"; public static final String P_LOGDIRNAME = "logdirname"; public static final String P_LOGFILENAME = "logfilename"; public static final String P_LOGFILESIZE = "logfilesize"; public static final String P_LOGFILECOUNT = "logfilecount"; - public static final String P_LOGLEVEL = "loglevel"; + public static final String P_LOGLEVEL = "loglevel";*/ public static final String P_DEBUG = "debug"; public static final String WEBAPP_LOGGER = "webapplogger"; + /* private Level getLevel(String levelStr) { Level level = Level.INFO; if(levelStr.equalsIgnoreCase(Level.ALL.getName())) { @@ -73,10 +77,12 @@ } return level; } - + */ public void contextInitialized(ServletContextEvent event) { ServletContext servletContext = event.getServletContext(); + /* Object o = servletContext.getAttribute(WEBAPP_LOGGER); + if(o == null) { String loggername = servletContext.getInitParameter(P_LOGGERNAME); // Name der root Package dieser Anwendung String logdirname = servletContext.getInitParameter(P_LOGDIRNAME); @@ -107,10 +113,12 @@ } else { // logger ist schon da } + */ } public void contextDestroyed(ServletContextEvent event) { ServletContext servletContext = event.getServletContext(); + /* Object o = servletContext.getAttribute(WEBAPP_LOGGER); if(o != null) { Logger logger = (Logger) o; @@ -125,6 +133,7 @@ servletContext.removeAttribute(WEBAPP_LOGGER); logger = null; } + */ } /** -- Gitblit v1.9.3