Package org.eclipse.osgi.service.internal.composite

Examples of org.eclipse.osgi.service.internal.composite.CompositeModule


    return validExports(matchingExports);
  }

  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]))
View Full Code Here


    try {
      surrogateContent = CompositeHelper.getSurrogateInput(thisData.getManifest(), child, matchingExports);
    } catch (IOException e) {
      throw new BundleException("Error updating surrogate bundle.", e); //$NON-NLS-1$
    }
    CompositeModule surrogateComposite = (CompositeModule) getSurrogateBundle();
    surrogateComposite.updateContent(surrogateContent);
    // enable/disable the surrogate composite based on if we have exports handed to us
    boolean disable = matchingExports == null ? true : false;
    CompositeHelper.setDisabled(disable, getSurrogateBundle(), getCompositeFramework().getBundleContext());
    // return true if we can resolve the surrogate bundle
    return disable ? false : surrogateComposite.resolveContent();
  }
View Full Code Here

    return validExports(matchingExports);
  }

  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]))
View Full Code Here

    try {
      surrogateContent = CompositeHelper.getSurrogateInput(thisData.getManifest(), child, matchingExports);
    } catch (IOException e) {
      throw new BundleException("Error updating surrogate bundle.", e); //$NON-NLS-1$
    }
    CompositeModule surrogateComposite = (CompositeModule) getSurrogateBundle();
    surrogateComposite.updateContent(surrogateContent);
    // enable/disable the surrogate composite based on if we have exports handed to us
    boolean disable = matchingExports == null ? true : false;
    CompositeHelper.setDisabled(disable, getSurrogateBundle(), getCompositeFramework().getBundleContext());
    // return true if we can resolve the surrogate bundle
    return disable ? false : surrogateComposite.resolveContent();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.service.internal.composite.CompositeModule

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.