Example usage for com.liferay.portal.kernel.deploy.hot HotDeployUtil fireUndeployEvent

List of usage examples for com.liferay.portal.kernel.deploy.hot HotDeployUtil fireUndeployEvent

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.deploy.hot HotDeployUtil fireUndeployEvent.

Prototype

public static void fireUndeployEvent(HotDeployEvent hotDeployEvent) 

Source Link

Usage

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);
}