List of usage examples for javax.servlet ServletContextListener interface-usage
From source file cn.vlabs.umt.ui.UMTStartupListener.java
public class UMTStartupListener implements ServletContextListener { public void contextDestroyed(ServletContextEvent event) { ServletContext context = event.getServletContext(); FileSystemXmlApplicationContext factory = (FileSystemXmlApplicationContext) context .getAttribute(Attributes.APPLICATION_CONTEXT_KEY); if (factory != null) {
From source file edu.cornell.mannlib.vitro.webapp.auth.policy.setup.CommonPolicyFamilySetup.java
/** * Set up the common policy family, with Identifier factory. */ public class CommonPolicyFamilySetup implements ServletContextListener { private static final Log log = LogFactory.getLog(CommonPolicyFamilySetup.class);
From source file org.jasig.portal.jmx.JavaManagementServerListener.java
/**
* A Listener that wraps a {@link JavaManagementServerBean}. Please look at its documentation
* for the appropriate system properties to set.
* <br>
* <br>
* The ports are configured via <context-param> elements in the web.xml<br>
From source file org.apache.jcs.utils.servlet.JCSServletContextListener.java
/**
* If you add this to the context listeners section of your web.xml file, this will shutdown JCS
* gracefully.
* <p>
* Add the following to the top of your web.xml file.
*
From source file org.mobicents.servlet.sip.pbx.PbxListener.java
/** * @author Thomas Leseney */ public class PbxListener implements ServletContextListener { private static Log logger = LogFactory.getLog(PbxListener.class);
From source file org.accada.epcis.repository.RepositoryContextListener.java
/**
* This RepositoryContextListener performs the initialization and termination
* (shut-down) work required by the Accada EPCIS repository application, such as
* initializing the logging framework. This class receives notifications about
* changes to the servlet context of the web application, e.g., when the servlet
* context is loaded, or is about to be shut down.
From source file v7views.mongo.InitMongo.java
public class InitMongo implements ServletContextListener { public void contextDestroyed(ServletContextEvent sce) { getMongo(sce.getServletContext()).close(); }
From source file org.sonar.server.platform.PlatformLifecycleListener.java
public final class PlatformLifecycleListener implements ServletContextListener { private static final Logger LOG = LoggerFactory.getLogger(PlatformLifecycleListener.class); public void contextInitialized(ServletContextEvent event) { Configuration configuration = new ConfigurationFactory().getConfiguration(event);
From source file com.bekk.boss.pluto.embedded.jetty.util.OverrideContextLoaderListener.java
public class OverrideContextLoaderListener implements ServletContextListener { private ContextLoaderListener contextLoaderListener; private static final String PLUTO_SERVICE_CONFIG_LOCATION = "classpath:pluto-portal-driver-services-config.xml";
From source file eionet.rod.scheduled.RdfExporterJob.java
/** * RDF exporter automatic job. * @author Kaido Laine */ public class RdfExporterJob extends AbstractScheduledJob implements ServletContextListener {