public class SosContextListener extends Object implements javax.servlet.ServletContextListener
Modifier and Type | Field and Description |
---|---|
private static List<Runnable> |
hooks |
private static org.slf4j.Logger |
LOG |
private static String |
path |
Constructor and Description |
---|
SosContextListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupConfigurator() |
protected void |
cleanupDrivers(Set<String> providedJdbcDriver) |
protected void |
cleanupGeometryHandler() |
protected void |
cleanupSettingsManager() |
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
static String |
getPath() |
static boolean |
hasPath() |
protected void |
instantiateConfigurator(Properties p) |
protected void |
instantiateConfigurator(javax.servlet.ServletContext context) |
protected void |
instantiateGeometryHandler()
Instantiate the
GeometryHandler to avoid exceptions during the
shutdown process. |
static void |
registerShutdownHook(Cleanupable cleanupable) |
static void |
registerShutdownHook(Runnable runnable) |
static void |
setPath(String path) |
private static final org.slf4j.Logger LOG
private static String path
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
protected void cleanupSettingsManager()
protected void cleanupConfigurator()
protected void cleanupGeometryHandler()
protected void instantiateConfigurator(javax.servlet.ServletContext context)
protected void instantiateConfigurator(Properties p)
protected void instantiateGeometryHandler()
GeometryHandler
to avoid exceptions during the
shutdown process.public static String getPath()
public static void setPath(String path)
public static boolean hasPath()
public static void registerShutdownHook(Runnable runnable)
public static void registerShutdownHook(Cleanupable cleanupable)
Copyright © 2012-2015 52north.org. All Rights Reserved.