@Override public void invokeUndeploy(HotDeployEvent hotDeployEvent) throws HotDeployException { for (HotDeployListener hotDeployListener : _serviceTrackerList) { hotDeployListener.invokeUndeploy(hotDeployEvent); } }
@Override public synchronized void fireUndeployEvent(HotDeployEvent hotDeployEvent) { for (int i = _hotDeployListeners.size() - 1; i >= 0; i--) { HotDeployListener hotDeployListener = _hotDeployListeners.get(i); PortletClassLoaderUtil.setServletContextName(hotDeployEvent.getServletContextName()); try { hotDeployListener.invokeUndeploy(hotDeployEvent); } catch (HotDeployException hde) { _log.error(hde, hde); } finally { PortletClassLoaderUtil.setServletContextName(null); } } _deployedServletContextNames.remove(hotDeployEvent.getServletContextName()); ClassLoader classLoader = hotDeployEvent.getContextClassLoader(); TemplateManagerUtil.destroy(classLoader); _pacl.unregister(classLoader); RequiredPluginsUtil.startCheckingRequiredPlugins(); }