|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.server.war.EasyBeansContextListener
public class EasyBeansContextListener
Listener class which is notified of lifecycle events. It allows to start EasyBeans at startup and stop it at the end.
Nested Class Summary | |
---|---|
private static class |
EasyBeansContextListener.AvailableWebContainer
List of available supported container. |
Field Summary | |
---|---|
private EasyBeansContextListener.AvailableWebContainer |
containerType
Container detected ?. |
private Embedded |
embedded
Embedded instance. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
EasyBeansContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Notification that the servlet context is about to be shut down. |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Notification that the web application initialization process is starting. |
private java.lang.String |
detectWebContainerDirectory()
Gets the directory for EJB3 depending on the servlet container. |
private void |
registerLibraries(javax.servlet.ServletContextEvent servletContextEvent)
Register the EasyBeans libraries in the root classloader (allowing each applications to communicate with EasyBeans). |
private void |
registerTomcat(javax.servlet.ServletContextEvent servletContextEvent)
Register the EasyBeans libraries for Tomcat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
private Embedded embedded
private EasyBeansContextListener.AvailableWebContainer containerType
Constructor Detail |
---|
public EasyBeansContextListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.private java.lang.String detectWebContainerDirectory()
private void registerLibraries(javax.servlet.ServletContextEvent servletContextEvent)
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.private void registerTomcat(javax.servlet.ServletContextEvent servletContextEvent)
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |