Examples of buildCapability()


Examples of org.osgi.service.indexer.Builder.buildCapability()

      SymbolicName bsn = Util.getSymbolicName(resource);
      builder.addAttribute(Namespaces.ATTR_BUNDLE_SYMBOLIC_NAME, bsn.getName());
      Version bundleVersion = Util.getVersion(resource);
      builder.addAttribute(Namespaces.ATTR_BUNDLE_VERSION, bundleVersion);

      caps.add(builder.buildCapability());
    }
  }

  private void doImports(Resource resource, List<? super Requirement> reqs) throws Exception {
    Manifest manifest = resource.getManifest();
View Full Code Here

Examples of org.osgi.service.indexer.Builder.buildCapability()

      String service = OSGiHeader.removeDuplicateMarker(export.getKey());
      Builder builder = new Builder().setNamespace(Namespaces.NS_SERVICE).addAttribute(Constants.OBJECTCLASS, service);
      for (Entry<String, String> attribEntry : export.getValue().entrySet())
        builder.addAttribute(attribEntry.getKey(), attribEntry.getValue());
      builder.addDirective(Namespaces.DIRECTIVE_EFFECTIVE, Namespaces.EFFECTIVE_ACTIVE);
      caps.add(builder.buildCapability());
    }
  }

  private void doImportService(Resource resource, List<? super Requirement> reqs) throws Exception {
    @SuppressWarnings("deprecation")
View Full Code Here

Examples of org.osgi.service.indexer.Builder.buildCapability()

      if (specVersion != null)
        builder.addAttribute(Namespaces.ATTR_VERSION, specVersion);

      builder.addDirective(Namespaces.DIRECTIVE_USES, uses.toString());
      caps.add(builder.buildCapability());
    }
  }

  /**
   * Map the version of package {@code org.osgi.framework} to an OSGi
View Full Code Here

Examples of org.osgi.service.indexer.Builder.buildCapability()

      Map<String, String> attribs = entry.getValue();
      Util.copyAttribsToBuilder(builder, attribs);

      if (type == IndicatorType.Capability)
        caps.add(builder.buildCapability());
      else if (type == IndicatorType.Requirement)
        reqs.add(builder.buildRequirement());
    }
  }
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.