|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.java.servlet.ContextLoaderListener
public class ContextLoaderListener
Register a PHP JSR 223 EngineFactory when the web context starts. Used when the web application WEB-INF/web.xml contains a listener attribute:
<listener>
<listener-class>php.java.servlet.ContextLoaderListener</listener-class>
</listener>
EngineFactory| Field Summary | |
|---|---|
static java.lang.String |
CLOSEABLES
The key used to store the closeables list in the servlet context, must be destroyed before the engines |
static java.lang.String |
ENGINES
The key used to store the jsr 223 engines list in the servlet context |
| Constructor Summary | |
|---|---|
ContextLoaderListener()
|
|
| Method Summary | |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
|
void |
contextInitialized(javax.servlet.ServletContextEvent event)
|
static void |
destroyCloseables(javax.servlet.ServletContext ctx)
Only for internal use |
static void |
destroyScriptEngines(javax.servlet.ServletContext ctx)
Only for internal use |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLOSEABLES
public static final java.lang.String ENGINES
| Constructor Detail |
|---|
public ContextLoaderListener()
| Method Detail |
|---|
public static void destroyCloseables(javax.servlet.ServletContext ctx)
ctx - The servlet contextpublic static void destroyScriptEngines(javax.servlet.ServletContext ctx)
ctx - The servlet contextpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerpublic void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||