org.jumpmind.symmetric
Class SymmetricEngineContextLoaderListener
java.lang.Object
org.springframework.web.context.ContextLoaderListener
org.jumpmind.symmetric.SymmetricEngineContextLoaderListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class SymmetricEngineContextLoaderListener
- extends org.springframework.web.context.ContextLoaderListener
This is the standard way to bootstrap Symmetric in a web container. Symmetric
uses Spring's WebApplicationContext for access to symmetric from its
Servlets. This servlet context listener forces the contextConfigLocation for
Spring to be load symmetric.xml.
Developers have the option to subclass
off of this listener and override the createConfigureAndStartEngine() method.
| Methods inherited from class org.springframework.web.context.ContextLoaderListener |
getContextLoader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SymmetricEngineContextLoaderListener
public SymmetricEngineContextLoaderListener()
SymmetricEngineContextLoaderListener
public SymmetricEngineContextLoaderListener(SymmetricEngine engine)
contextInitialized
public final void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized in interface javax.servlet.ServletContextListener- Overrides:
contextInitialized in class org.springframework.web.context.ContextLoaderListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener- Overrides:
contextDestroyed in class org.springframework.web.context.ContextLoaderListener
createConfigureAndStartEngine
protected void createConfigureAndStartEngine(org.springframework.context.ApplicationContext ctx)
createContextLoader
protected org.springframework.web.context.ContextLoader createContextLoader()
- Overrides:
createContextLoader in class org.springframework.web.context.ContextLoaderListener
getEngine
public SymmetricEngine getEngine()
Copyright © 2007-2008. All Rights Reserved.