public class DefaultPropertiesLoaderListener extends Object implements javax.servlet.ServletContextListener
ServletContextListener
to initialize the DefaultPropertiesLoader
.
Example Configuration could look like the following:
web.xml -------------------------------------- <context-param> <param-name>settings4jDefaultProperties</param-name> <param-value> com/myCompany/myApp/log4j.configuration=com/myCompany/myApp/log4j.xml </param-value> </context-param> <listener> <display-name></display-name> <listener-class>org.settings4j.helper.web.DefaultPropertiesLoaderListener</listener-class> </listener> --------------------------------------
Constructor and Description |
---|
DefaultPropertiesLoaderListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2008–2014. All rights reserved.