List of usage examples for com.liferay.portal.kernel.deploy.hot HotDeployUtil fireUndeployEvent
public static void fireUndeployEvent(HotDeployEvent hotDeployEvent)
From source file:com.liferay.web.extender.internal.WebPluginDeployer.java
License:Open Source License
public void doStop(Bundle bundle, String servletContextName) throws Exception { sendEvent(bundle, "org/osgi/service/web/UNDEPLOYING", null, false); ServletContext servletContext = ServletContextPool.get(servletContextName); if (servletContext == null) { sendEvent(bundle, "org/osgi/service/web/FAILED", null, false); return;// w ww . j a va 2 s . c om } ClassLoader classLoader = (ClassLoader) servletContext.getAttribute("bundle.classloader"); HotDeployUtil.fireUndeployEvent(new HotDeployEvent(servletContext, classLoader)); destroy(servletContext); sendEvent(bundle, "org/osgi/service/web/UNDEPLOYED", null, false); handleCollidedWabs(servletContextName); }