@Override public void destroy() { super.destroy(); ContainerLifecycleListener listener = containerListener; if (listener != null) { listener.onShutdown(this); } }
@Override public void reload(ResourceConfig configuration) { try { containerListener.onShutdown(this); webComponent = new WebComponent(webComponent.webConfig, configuration); containerListener = ConfigHelper.getContainerLifecycleListener(webComponent.appHandler); containerListener.onReload(this); containerListener.onStartup(this); } catch (ServletException ex) { logger.log(Level.SEVERE, "Reload failed", ex); } }