Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.webapp

public final Class ContextInitialiser

extends Object
implements ServletContextListener
Class Inheritance
All Implemented Interfaces
javax.servlet.ServletContextListener, java.util.EventListener
Imports
uk.ac.ed.ph.snuggletex.utilities.SaxonTransformerFactoryChooser, .SimpleStylesheetCache, .StylesheetManager, javax.servlet.ServletContext, .ServletContextEvent, .ServletContextListener, org.slf4j.Logger, .LoggerFactory

Fairly typical ServletContextListener that just sets up a few shared resources and sticks them in the ServletContext for access by servlets.
Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
private static final Logger
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
contextDestroyed(ServletContextEvent servletContextEvent)

Overrides default javax.servlet.ServletContextListener.contextDestroyed.

Receives notification that the ServletContext is about to be shut down.

public void
contextInitialized(ServletContextEvent servletContextEvent)

Overrides default javax.servlet.ServletContextListener.contextInitialized.

Receives notification that the web application initialization process is starting.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final Logger logger
MAVEN_SITE_URL_PROPERTY_NAMEback to summary
public static final String MAVEN_SITE_URL_PROPERTY_NAME
SNUGGLETEX_VERSION_PROPERTY_NAMEback to summary
public static final String SNUGGLETEX_VERSION_PROPERTY_NAME
STYLESHEET_MANAGER_ATTRIBUTE_NAMEback to summary
public static final String STYLESHEET_MANAGER_ATTRIBUTE_NAME

Constructor Detail

ContextInitialiserback to summary
public ContextInitialiser()

Method Detail

contextDestroyedback to summary
public void contextDestroyed(ServletContextEvent servletContextEvent)

Overrides default javax.servlet.ServletContextListener.contextDestroyed.

Doc from javax.servlet.ServletContextListener.contextDestroyed.

Receives notification that the ServletContext is about to be shut down.

All servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction.

contextInitializedback to summary
public void contextInitialized(ServletContextEvent servletContextEvent)

Overrides default javax.servlet.ServletContextListener.contextInitialized.

Doc from javax.servlet.ServletContextListener.contextInitialized.

Receives notification that the web application initialization process is starting.

All ServletContextListeners are notified of context initialization before any filters or servlets in the web application are initialized.