Examples of registerShutdownHook()


Examples of org.springframework.web.context.support.XmlWebApplicationContext.registerShutdownHook()

            ServletContainer resourceServlet = new ServletContainer(resourceConfig);
            servlets.put("/*", resourceServlet);

      XmlWebApplicationContext webConfig = new XmlWebApplicationContext();
      webConfig.setConfigLocation("classpath:META-INF/restSimulatorContext.xml");
      webConfig.registerShutdownHook();

            List<EventListener> eventListeners = new ArrayList<EventListener>();
            eventListeners.add(new ContextLoaderListener(webConfig));
            eventListeners.add(new RequestContextListener());

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.