|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.app.WebApplicationAssemblerContextListener
A servlet context listener that creates, and manages a web application assembler for a JSP application context. The listener creates a web application assembler, retrieves a configuration files for it as context relative URIs. The listener causes the assembler to load and configure itself. It then starts the assembler.
As the servlet context is destroyed, the web application assembler is retrieved, and the listener causes the assembler to dispose of it service beans in orderly fashion.
The context listener expects to read a list of assembly factory XML files
from context parameter called "configuration". See the web application
deployment notes in the JSP / Servlet standards.
The value of the "configuration" parameter can be
either comma (;) or bar (|) delimited. If the "configuration" parameter
is empty or not specified, then the context listener will attempt
to read from the DEFAULT_CONFIGURATON_FILE instead.
DEFAULT_CONFIGURATION_FILE,
WebApplicationAssembler| Field Summary | |
static java.lang.String |
DEFAULT_CONFIGURATION_FILE
Default configuration resource URI has the value of "/WEB-INF/service-assembly.xml" |
| Constructor Summary | |
WebApplicationAssemblerContextListener()
Default constructor |
|
| Method Summary | |
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Implements / overrides contextDestroyed |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Implements / overrides contextInitialized |
| 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_CONFIGURATION_FILE
"/WEB-INF/service-assembly.xml"
| Constructor Detail |
public WebApplicationAssemblerContextListener()
| Method Detail |
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerevent - the servlet context eventServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerevent - the servlet context eventServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||