Package org.springframework.osgi.web.deployer

Examples of org.springframework.osgi.web.deployer.WarDeployment.undeploy()


      public void doRun() {
        WarDeployment deployment = (WarDeployment) bundlesToDeployments.remove(bundle);
        // double check that we do have a deployment
        if (deployment != null)
          try {
            deployment.undeploy();
          } catch (OsgiWarDeploymentException ex) {
            // log exception
            log.error("War undeployment of bundle " + bundleName + " failed", ex);
          }
      }
View Full Code Here


    BundleContext bundleCtx = new MockBundleContext();
    String contextPath = "/path";
    deployer.setServer(tempServer);
    deployer.afterPropertiesSet();
    WarDeployment deployment = deployer.createDeployment(bundleCtx.getBundle(), contextPath);
    deployment.undeploy();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.