Example usage for javax.servlet ServletContextListener interface-usage

List of usage examples for javax.servlet ServletContextListener interface-usage

Introduction

In this page you can find the example usage for javax.servlet ServletContextListener interface-usage.

Usage

From source file mitm.djigzo.web.utils.SetDefaultSystemPropertiesServletContextListener.java

/**
 * ServletContextListener imports a property file into the system properties. The properties are imported
 * into the system properties if the system property is not already set. The property file read is 
 * retrieved from a context-param with name "djigzo.systemproperties.default".
 * 
 * Example:

From source file edu.cornell.mannlib.vitro.webapp.servlet.setup.ContentModelSetup.java

/**
 * Sets up the content models, OntModelSelectors and webapp DAO factories.
 * 
 * Why the firstTimeStartup flag? Because you can't ask a large SDB model
 * whether it is empty. SDB translates  this into a call to size(), which
 * in turn becomes find(null, null, null) and a count, and this gives an

From source file fr.cls.atoll.motu.web.servlet.listener.Log4JConfigListener.java

/**
 * Bootstrap listener for custom Log4J initialization in a web environment.
 * <p>
 * This listener has to be registered in <code>web.xml</code> with the following property:
 * <p>
 * <i>log4jConfigLocation</i>: Location of the log4j config file.

From source file com.sqli.liferay.imex.servlet.ImExServletContextListener.java

public class ImExServletContextListener extends BasePortalLifecycle implements ServletContextListener {

    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        portalDestroy();
    }

From source file org.sead.repositories.reference.RepoContextListener.java

@WebListener
public class RepoContextListener implements ServletContextListener {

    private static final Logger log = Logger.getLogger(RepoContextListener.class);

    @Override

From source file org.sakaiproject.kernel.webapp.JaxRsApplicationListener.java

/**
 * Registers JAX-RS Resources from the {@link Application} specified by the
 * "sakai.jaxrs.application" context-param.
 */
public class JaxRsApplicationListener implements ServletContextListener {
    private static final Log LOG = LogFactory.getLog(JaxRsApplicationListener.class);

From source file hoot.services.HootServletContext.java

public class HootServletContext implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        TranslatorResource.startTranslationService();
        P2PResource.startP2PService();

From source file com.edmunds.etm.client.impl.ClientServletContextListener.java

/**
 * Main class of etm client. <p/> The etm client is instanced as a servlet context listener. It will connect to the
 * ZooKeeper server regardless of when the servlets are loaded. <p/> The disconnect will happen  when the context is
 * shutdown or if the process is terminates unexpectedly (due to zookeeper heartbeats). <p/> Copyright (C) 2010
 * Edmunds.com <p/> <p/> Date: Apr 21, 2010
 *

From source file org.pentaho.platform.web.http.context.PentahoSystemReadyListener.java

public class PentahoSystemReadyListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        IPluginManager pluginManager = PentahoSystem.get(IPluginManager.class);

From source file info.magnolia.cms.servlets.PropertyInitializer.java

/**
 * <p>
 * Magnolia property initializer: reads initialization parameter from a properties file. The name of the file can be
 * defined as a context parameter in web.xml. Multiple path, comma separated, are supported (the first existing file in
 * the list will be used), and the following variables will be used:
 * </p>