@WebListener public class ModuleSystemServletListener extends Object implements javax.servlet.ServletContextListener
When running in a Servlet 3.0 container, this listener will be automatically registered, and start the module system when the webapp starts.
You can supply the module folder with an init parameter called injectModuleFolder to overwrite the default lookup mechanism. By default the module folder will be resolved like this:
If you have already started the module system via some other means, this listener will do nothing. You can disable the module system by calling ModuleSystem.disable() to prevent this listener from starting the module system.
| Constructor and Description |
|---|
ModuleSystemServletListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2011-2013 SYSE. All Rights Reserved.