示例#1
0
 @Override
 public void destroy() {
   super.destroy();
   ContainerLifecycleListener listener = containerListener;
   if (listener != null) {
     listener.onShutdown(this);
   }
 }
示例#2
0
 @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);
   }
 }