com.elasticpath.web.context.impl
Class EpContextConfigListener

java.lang.Object
  extended by com.elasticpath.web.context.impl.EpContextConfigListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener
Direct Known Subclasses:
EpContextConfigListener

public class EpContextConfigListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Bootstrap listener to set up various context config after the springframework context has been loaded.

This listener should be registered after ContextLoaderListener in web.xml.

For Servlet 2.2 containers and Servlet 2.3 ones that do not initalize listeners before servlets, use ContextLoaderServlet. See the latter's Javadoc for details.

This class may be extended to provide custom behaviour; such as in the case of the sf.


Constructor Summary
EpContextConfigListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Close the root web application context.
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Complete the context initialization for ElasticPath.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpContextConfigListener

public EpContextConfigListener()
Method Detail

contextDestroyed

public final void contextDestroyed(javax.servlet.ServletContextEvent event)
Close the root web application context.

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Parameters:
event - not used

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
                        throws EpSystemException
Complete the context initialization for ElasticPath.

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Parameters:
event - the servlet context event.
Throws:
EpSystemException - in case of any error happens.