Examples of BundleDescription


Examples of org.eclipse.osgi.service.resolver.BundleDescription

  }

  public synchronized BundleLoaderProxy getLoaderProxy() {
    if (proxy != null)
      return proxy;
    BundleDescription bundleDescription = getBundleDescription();
    if (bundleDescription == null)
      return null;
    proxy = new BundleLoaderProxy(this, bundleDescription);
    // Note that BundleLoaderProxy is a BundleReference
    // this is necessary to ensure the resolver can continue
    // to provide BundleRevision objects to resolver hooks.
    bundleDescription.setUserObject(proxy);
    return proxy;
  }
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

    if (end - start <= 1)
      return;
    List<BundleDescription> descList = new ArrayList<BundleDescription>(end - start);
    List<AbstractBundle> missingDescs = new ArrayList<AbstractBundle>(0);
    for (int i = start; i < end; i++) {
      BundleDescription desc = bundles[i].getBundleDescription();
      if (desc != null)
        descList.add(desc);
      else
        missingDescs.add(bundles[i]);
    }
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

  }

  public synchronized BundleLoaderProxy getLoaderProxy() {
    if (proxy != null)
      return proxy;
    BundleDescription bundleDescription = getBundleDescription();
    if (bundleDescription == null)
      return null;
    proxy = new BundleLoaderProxy(this, bundleDescription);
    bundleDescription.setUserObject(proxy);
    return proxy;
  }
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

  public Version getVersion() {
    return exportedPackage.getVersion();
  }

  public boolean isRemovalPending() {
    BundleDescription exporter = exportedPackage.getExporter();
    if (exporter != null)
      return exporter.isRemovalPending();
    return true;
  }
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

      return null;

    Class result = null;
    //size may change, so we must check it every time
    for (int i = 0; i < allDependents.size() && result == null; i++) {
      BundleDescription searchedBundle = (BundleDescription) allDependents.get(i);
      try {
        BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(searchedBundle);
        if (proxy == null)
          continue;
        result = proxy.getBundleLoader().findClass(name);
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

      return null;

    URL result = null;
    //size may change, so we must check it every time
    for (int i = 0; i < allDependents.size() && result == null; i++) {
      BundleDescription searchedBundle = (BundleDescription) allDependents.get(i);
      BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(searchedBundle);
      if (proxy == null)
        continue;
      result = proxy.getBundleLoader().findResource(name);
      if (result == null) {
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

      return null;

    Enumeration results = null;
    //size may change, so we must check it every time
    for (int i = 0; i < allDependents.size(); i++) {
      BundleDescription searchedBundle = (BundleDescription) allDependents.get(i);
      try {
        BundleLoaderProxy proxy = buddyRequester.getLoaderProxy(searchedBundle);
        if (proxy == null)
          continue;
        results = BundleLoader.compoundEnumerations(results, proxy.getBundleLoader().findResources(name));
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

  }

  private void basicAddImmediateDependents(BundleDescription root) {
    BundleDescription[] dependents = root.getDependents();
    for (int i = 0; i < dependents.length; i++) {
      BundleDescription toAdd = dependents[i];
      if (toAdd.getHost() == null && !allDependents.contains(toAdd)) {
        allDependents.add(toAdd);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

  }

  private boolean validExports(ExportPackageDescription[] matchingExports) {
    // make sure each matching exports matches the export signature of the composite
    CompositeModule composite = (CompositeModule) getCompanionBundle();
    BundleDescription childDesc = composite.getCompositeDescription();
    ExportPackageDescription[] childExports = childDesc.getExportPackages();
    for (int i = 0; i < matchingExports.length; i++) {
      for (int j = 0; j < childExports.length; j++) {
        if (matchingExports[i].getName().equals(childExports[j].getName())) {
          if (!validateExport(matchingExports[i], childExports[j]))
            return false;
View Full Code Here

Examples of org.eclipse.osgi.service.resolver.BundleDescription

    if (end - start <= 1)
      return;
    List descList = new ArrayList(end - start);
    List missingDescs = new ArrayList(0);
    for (int i = start; i < end; i++) {
      BundleDescription desc = bundles[i].getBundleDescription();
      if (desc != null)
        descList.add(desc);
      else
        missingDescs.add(bundles[i]);
    }
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.