private Deployment getInitialBundleDeployment(OSGiCapability configcap) throws Exception { String identifier = configcap.getIdentifier(); Integer level = configcap.getStartLevel();
private Deployment getInitialBundleDeployment(OSGiCapability configcap) throws Exception { String identifier = configcap.getIdentifier(); Integer level = configcap.getStartLevel();
Integer bundleStartLevel = configcap.getStartLevel(); if (bundleStartLevel != null && bundleStartLevel > 0) { StartLevel plugin = injectedStartLevel.getValue();
Integer startlevel = configcap.getStartLevel(); if (startlevel != null && startlevel > 0) { XBundle bundle = brev.getBundle();
@Override public void start(StartContext context) throws StartException { // Start the module capabilities that have a start level assigned BundleManager bundleManager = injectedBundleManager.getValue(); for (OSGiCapability modcap : modulecaps) { if (modcap.getStartLevel() != null) { String identifier = modcap.getIdentifier(); XBundle bundle = bundleManager.getBundleByLocation(identifier); try { bundle.start(Bundle.START_ACTIVATION_POLICY); } catch (BundleException ex) { LOGGER.errorCannotStartBundle(ex, bundle); } } } // Start the bundle capabilities super.start(context); } }
@Override public void start(StartContext context) throws StartException { // Start the module capabilities that have a start level assigned BundleManager bundleManager = injectedBundleManager.getValue(); for (OSGiCapability modcap : modulecaps) { if (modcap.getStartLevel() != null) { String identifier = modcap.getIdentifier(); XBundle bundle = bundleManager.getBundleByLocation(identifier); try { bundle.start(Bundle.START_ACTIVATION_POLICY); } catch (BundleException ex) { LOGGER.errorCannotStartBundle(ex, bundle); } } } // Start the bundle capabilities super.start(context); } }