Examples of BundleStorage


Examples of com.github.dandelion.core.storage.BundleStorage

   *
   * <p>
   * Once loader, some checks are performed on the {@link BundleStorage}.
   */
  public void initBundleStorage() {
    bundleStorage = new BundleStorage();
    for (BundleLoader bundleLoader : getBundleLoaders()) {
      bundleStorage.storeBundles(bundleLoader.loadBundles());
    }
    bundleStorage.checkBundleDag();
  }
View Full Code Here

Examples of org.jboss.osgi.framework.spi.BundleStorage

        // uninstall is done in the bundle's install service
    }

    private void restoreStorageState(final DeploymentPhaseContext phaseContext, final Deployment deployment) {
        ServiceRegistry serviceRegistry = phaseContext.getServiceRegistry();
        BundleStorage storageProvider = (BundleStorage) serviceRegistry.getRequiredService(IntegrationServices.BUNDLE_STORAGE).getValue();
        StorageState storageState = storageProvider.getStorageState(deployment.getLocation());
        if (storageState != null) {
            deployment.setAutoStart(storageState.isPersistentlyStarted());
            deployment.addAttachment(StorageState.class, storageState);
        }
    }
View Full Code Here

Examples of org.jboss.osgi.framework.spi.BundleStorage

        int startlevel = level != null ? level.intValue() : 0;
        if (startlevel > 0) {
            dep.setStartLevel(level.intValue());
            dep.setAutoStart(true);
        }
        BundleStorage storageProvider = injectedStorageProvider.getValue();
        Long bundleId = injectedEnvironment.getValue().nextResourceIdentifier(null, dep.getSymbolicName());
        StorageState storageState = storageProvider.createStorageState(bundleId, location, startlevel, null);
        dep.addAttachment(StorageState.class, storageState);
        return dep;
    }
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.