|
|||||||||
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 static java.lang.String |
COMMON_LIBRARIES_LIST
Resource containing the list of files. |
private EasyBeansContextListener.AvailableWebContainer |
containerType
Container detected ?. |
static java.lang.String |
DEFAULT_XML_FILE
Default XML file. |
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. |
protected void |
getLibraries(javax.servlet.ServletContext sContext,
java.util.List<java.lang.String> libraries)
Retrieve a List of libraries to be loaded by TopLevel ClassLoaders. |
protected ServerConfig |
getServerConfig()
|
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 final java.lang.String COMMON_LIBRARIES_LIST
public static final java.lang.String DEFAULT_XML_FILE
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.protected void getLibraries(javax.servlet.ServletContext sContext, java.util.List<java.lang.String> libraries)
sContext
- ServletContext.libraries
- List of libs.protected ServerConfig getServerConfig()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |