|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.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.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_XML_FILE
Default XML file. |
Constructor Summary | |
---|---|
EasyBeansContextListener()
|
Method Summary | |
---|---|
protected void |
addLib(java.lang.ClassLoader cl,
ServletContextEvent servletContextEvent)
Add libraries in the given classloader. |
void |
contextDestroyed(ServletContextEvent servletContextEvent)
Notification that the servlet context is about to be shut down. |
void |
contextInitialized(ServletContextEvent servletContextEvent)
Notification that the web application initialization process is starting. |
protected java.util.List<java.lang.String> |
getExportedLibraries()
|
protected void |
getLibraries(ServletContext sContext,
java.util.List<java.lang.String> libraries)
Retrieve a List of libraries to be loaded by TopLevel ClassLoaders. |
protected org.ow2.easybeans.server.ServerConfig |
getServerConfig()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_XML_FILE
Constructor Detail |
---|
public EasyBeansContextListener()
Method Detail |
---|
public void contextInitialized(ServletContextEvent servletContextEvent)
contextInitialized
in interface ServletContextListener
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.public void contextDestroyed(ServletContextEvent servletContextEvent)
contextDestroyed
in interface ServletContextListener
servletContextEvent
- event class for notifications about changes to
the servlet context of a web application.protected void addLib(java.lang.ClassLoader cl, ServletContextEvent servletContextEvent)
cl
- the classloader where to add jars (which needs to be an
URLClassLoader)servletContextEvent
- the servlet context eventprotected void getLibraries(ServletContext sContext, java.util.List<java.lang.String> libraries)
sContext
- ServletContext.libraries
- List of libs.protected java.util.List<java.lang.String> getExportedLibraries()
protected org.ow2.easybeans.server.ServerConfig getServerConfig()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |