public abstract class Bootstrapper extends Object implements javax.servlet.ServletContextListener
getConfigurationLoader(javax.servlet.ServletContext)
and this will in turn stick it into your servlets (by putting it in the
environemtn for the top-level AbstractServlet
which everything should inherit from.
Note that this
is designed for a single use in a web application. The environment will be static
and shared by all the servlets in a single web application.
Created by Jeff Gaynor
on 3/21/12 at 10:59 AM
Constructor and Description |
---|
Bootstrapper() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
abstract ConfigurationLoader |
getConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node) |
abstract ConfigurationLoader |
getConfigurationLoader(javax.servlet.ServletContext servletContext) |
abstract Initialization |
getInitialization() |
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
public abstract ConfigurationLoader getConfigurationLoader(javax.servlet.ServletContext servletContext) throws Exception
Exception
public abstract ConfigurationLoader getConfigurationLoader(org.apache.commons.configuration.tree.ConfigurationNode node) throws MyConfigurationException
MyConfigurationException
public abstract Initialization getInitialization()
Copyright © 2019. All Rights Reserved.