@Override protected void initServletContext(ServletContext servletContext) { for (Object handler : getUrlMap().values()) { if (handler instanceof ServletContextAware) { ((ServletContextAware) handler).setServletContext(servletContext); } } }
@Override public void start() { if (!isRunning()) { this.running = true; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).start(); } } } }
@Override public void stop() { if (isRunning()) { this.running = false; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).stop(); } } } }
@Override protected void initServletContext(ServletContext servletContext) { for (Object handler : getUrlMap().values()) { if (handler instanceof ServletContextAware) { ((ServletContextAware) handler).setServletContext(servletContext); } } }
@Override protected void initServletContext(ServletContext servletContext) { for (Object handler : getUrlMap().values()) { if (handler instanceof ServletContextAware) { ((ServletContextAware) handler).setServletContext(servletContext); } } }
@Override public void start() { if (!isRunning()) { this.running = true; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).start(); } } } }
@Override public void start() { if (!isRunning()) { this.running = true; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).start(); } } } }
@Override public void stop() { if (isRunning()) { this.running = false; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).stop(); } } } }
@Override public void stop() { if (isRunning()) { this.running = false; for (Object handler : getUrlMap().values()) { if (handler instanceof Lifecycle) { ((Lifecycle) handler).stop(); } } } }