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