WebApplicationInitializer implementations
that register a ContextLoaderListener in the servlet context.
The only method required to be implemented by subclasses is
createRootApplicationContext(), which gets invoked from
registerContextLoaderListener(ServletContext).
| Modifier and Type | Field and Description |
|---|---|
| protected final Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract WebApplicationContext | Returns: the root application context, ornull if a root context is not
desiredCreate the "root" application context to be provided to the
|
| protected ApplicationContextInitializer | getRootApplicationContextInitializers()
Specify application context initializers to be applied to the root application
context that the |
| public void | onStartup(ServletContext
the servletContext)ServletContext to initializeImplements org. ServletContext with any servlets, filters, listeners
context-params and attributes necessary for initializing this web application.
|
| protected void | registerContextLoaderListener(ServletContext
the servlet context to register the listener against servletContext)Register a |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| AbstractContextLoaderInitializer | back to summary |
|---|---|
| public AbstractContextLoaderInitializer() | |
| createRootApplicationContext | back to summary |
|---|---|
| protected abstract WebApplicationContext createRootApplicationContext() Create the "root" application context to be provided to the
The returned context is delegated to
| |
| getRootApplicationContextInitializers | back to summary |
|---|---|
| protected ApplicationContextInitializer Specify application context initializers to be applied to the root application
context that the
| |
| onStartup | back to summary |
|---|---|
| public void onStartup(ServletContext servletContext) throws ServletException Implements org. Doc from org. Configure the given
| |
| registerContextLoaderListener | back to summary |
|---|---|
| protected void registerContextLoaderListener(ServletContext servletContext) Register a
| |