Examples of SymbolicName


Examples of org.osgi.service.indexer.impl.types.SymbolicName

    Attributes attribs = resource.getManifest().getMainAttributes();
    if (attribs.getValue(Constants.FRAGMENT_HOST) != null)
      return;

    SymbolicName bsn = Util.getSymbolicName(resource);
    Version version = Util.getVersion(resource);

    bundleBuilder.addAttribute(Namespaces.NS_WIRING_BUNDLE, bsn.getName()).addAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE, version);
    hostBuilder.addAttribute(Namespaces.NS_WIRING_HOST, bsn.getName()).addAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE, version);

    for (Entry<String, String> attribEntry : bsn.getAttributes().entrySet()) {
      String key = attribEntry.getKey();
      if (key.endsWith(":")) {
        String directiveName = key.substring(0, key.length() - 1);
        if (Constants.FRAGMENT_ATTACHMENT_DIRECTIVE.equalsIgnoreCase(directiveName)) {
          if (Constants.FRAGMENT_ATTACHMENT_NEVER.equalsIgnoreCase(attribEntry.getValue()))
View Full Code Here

Examples of org.osgi.service.indexer.impl.types.SymbolicName

          else
            builder.addAttribute(key, attribEntry.getValue());
        }
      }

      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());
    }
View Full Code Here

Examples of org.osgi.service.indexer.impl.types.SymbolicName

  public void setKnownBundlesExtra(Properties extras) {
    this.extraProperties = extras;
  }

  public void analyzeResource(Resource resource, List<Capability> caps, List<Requirement> reqs) throws Exception {
    SymbolicName resourceName;
    try {
      resourceName = Util.getSymbolicName(resource);
    } catch (IllegalArgumentException e) {
      // not a bundle, so return without analyzing
      return;
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.