Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/BaseServletContextListener.java @ 8203:238fc722f87a
sed 's/logger/log/g' src/**/*.java
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 13:19:22 +0200 |
parents | ea9eef426962 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8202:e4606eae8ea5 | 8203:238fc722f87a |
---|---|
25 */ | 25 */ |
26 public class BaseServletContextListener implements ServletContextListener { | 26 public class BaseServletContextListener implements ServletContextListener { |
27 | 27 |
28 public static final String LOG4J_PROPERTIES = "FLYS_CLIENT_LOG4J_PROPERIES"; | 28 public static final String LOG4J_PROPERTIES = "FLYS_CLIENT_LOG4J_PROPERIES"; |
29 | 29 |
30 public static final Logger logger = Logger.getLogger(BaseServletContextListener.class); | 30 public static final Logger log = Logger.getLogger(BaseServletContextListener.class); |
31 | 31 |
32 @Override | 32 @Override |
33 public void contextInitialized(ServletContextEvent sce) { | 33 public void contextInitialized(ServletContextEvent sce) { |
34 ServletContext sc = sce.getServletContext(); | 34 ServletContext sc = sce.getServletContext(); |
35 | 35 |
36 this.initLogging(sc); | 36 this.initLogging(sc); |
37 | 37 |
38 String filename = sc.getInitParameter("features-file"); | 38 String filename = sc.getInitParameter("features-file"); |
39 | 39 |
40 logger.debug("Initializing ServletContext"); | 40 log.debug("Initializing ServletContext"); |
41 try { | 41 try { |
42 XMLFileFeatures features = new XMLFileFeatures(sc.getRealPath(filename)); | 42 XMLFileFeatures features = new XMLFileFeatures(sc.getRealPath(filename)); |
43 sc.setAttribute(Features.CONTEXT_ATTRIBUTE, features); | 43 sc.setAttribute(Features.CONTEXT_ATTRIBUTE, features); |
44 } catch(IOException e) { | 44 } catch(IOException e) { |
45 logger.error(e); | 45 log.error(e); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 @Override | 49 @Override |
50 public void contextDestroyed(ServletContextEvent sce) { | 50 public void contextDestroyed(ServletContextEvent sce) { |