info.magnolia.module.blossom.support
Class ServletContextExposingContextListener
java.lang.Object
info.magnolia.module.blossom.support.ServletContextExposingContextListener
- All Implemented Interfaces:
- EventListener, javax.servlet.ServletContextListener
public class ServletContextExposingContextListener
- extends Object
- implements javax.servlet.ServletContextListener
ContextListener that holds a reference to the ServletContext. This is useful since Magnolia
does not expose the ServletContext to modules during install and startup. Should be configured
before the Magnolia listener in web.xml
- Since:
- 1.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContextExposingContextListener
public ServletContextExposingContextListener()
getServletContext
public static javax.servlet.ServletContext getServletContext()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2009-2011 Magnolia International Ltd.. All Rights Reserved.