|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.iocular.web.WebApplicationListener
public class WebApplicationListener
This listener must be registered as a 'listener' entry in web.xml for any webapp that requires the use of the iocular container. An example config would be:
to.etc.iocular.web.WebApplicationListener ]]>This receives info when the web application starts and when it ends; this creates the web- and session-scoped containers.
Constructor Summary | |
---|---|
WebApplicationListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent cxe)
|
void |
contextInitialized(javax.servlet.ServletContextEvent cxe)
A webapp is starting. |
static WebConfiguration |
createConfiguration(javax.servlet.ServletContext ctx)
Entry called to configure the web app, if still needed. |
void |
requestDestroyed(javax.servlet.ServletRequestEvent e)
|
void |
requestInitialized(javax.servlet.ServletRequestEvent e)
|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent se)
Creates the session container when a new session is registered. |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebApplicationListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent cxe)
contextInitialized
in interface javax.servlet.ServletContextListener
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)
public void contextDestroyed(javax.servlet.ServletContextEvent cxe)
contextDestroyed
in interface javax.servlet.ServletContextListener
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
sessionCreated
in interface javax.servlet.http.HttpSessionListener
HttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
public void requestInitialized(javax.servlet.ServletRequestEvent e)
requestInitialized
in interface javax.servlet.ServletRequestListener
public void requestDestroyed(javax.servlet.ServletRequestEvent e)
requestDestroyed
in interface javax.servlet.ServletRequestListener
public static WebConfiguration createConfiguration(javax.servlet.ServletContext ctx) throws java.lang.Exception
ctx
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |