Package org.jboss.osgi.framework.bundle

Examples of org.jboss.osgi.framework.bundle.BundleManager.installBundle()


        log.tracef("Installing deployment: %s", deployment);
        try {
            boolean autoStart = deployment.isAutoStart();
            deployment.setAutoStart(false);
            BundleManager bundleManager = injectedBundleManager.getValue();
            bundleManager.installBundle(deployment);
            deployment.setAutoStart(autoStart);
        } catch (Throwable t) {
            throw new StartException("Failed to install deployment: " + deployment, t);
        }
    }
View Full Code Here


            DeployerService service = new SystemDeployerService(sysContext)
            {
               @Override
               protected Bundle installBundle(Deployment dep) throws BundleException
               {
                  AbstractBundle bundleState = bundleManager.installBundle(dep);
                  return bundleState.getBundleWrapper();
               }
            };
            service.deploy(deployments.toArray(new Deployment[deployments.size()]));
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.