Package org.jboss.osgi.deployment.deployer

Examples of org.jboss.osgi.deployment.deployer.SystemDeployerService


    }

    @Override
    protected DeployerService getDeployerService(final BundleContext context) {

        return new SystemDeployerService(context) {

            @Override
            protected Bundle installBundle(Deployment dep) throws BundleException {

                log.tracef("Install deployment: %s", dep);
View Full Code Here


                deployments.add(dep);
            }

            // Deploy the bundles through the {@link SystemDeployerService}
            // [TODO] Revisit whether these deployments should go through the {@link DeploymentUnitProcessor} chain
            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()]));

        } catch (Throwable t) {
            throw new StartException("Failed to start OSGi Framework: " + framework, t);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.osgi.deployment.deployer.SystemDeployerService

Copyright © 2018 www.massapicom. 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.