Examples of buildRequirement()


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

      Builder builder = new Builder().setNamespace(Namespaces.NS_WIRING_PACKAGE).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());

      copyAttribsAndDirectives(entry.getValue(), builder, Constants.VERSION_ATTRIBUTE, "specification-version");

      reqs.add(builder.buildRequirement());
    }
  }

  private void copyAttribsAndDirectives(Map<String, String> input, Builder output, String... ignores) {
    Set<String> ignoreSet = new HashSet<String>(Arrays.asList(ignores));
View Full Code Here

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

      Builder builder = new Builder().setNamespace(Namespaces.NS_WIRING_BUNDLE).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());

      copyAttribsAndDirectives(entry.getValue(), builder, Constants.BUNDLE_VERSION_ATTRIBUTE);

      reqs.add(builder.buildRequirement());
    }
  }

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

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

      Util.addVersionFilter(filter, version, VersionKey.BundleVersion);
      filter.append(")");

      Builder builder = new Builder().setNamespace(Namespaces.NS_WIRING_HOST).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());

      reqs.add(builder.buildRequirement());
    }
  }

  private void doExportService(Resource resource, List<? super Capability> caps) throws Exception {
    @SuppressWarnings("deprecation")
View Full Code Here

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

      Builder builder = new Builder().setNamespace(Namespaces.NS_SERVICE).addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString())
          .addDirective(Namespaces.DIRECTIVE_EFFECTIVE, Namespaces.EFFECTIVE_ACTIVE);
      if (optional)
        builder.addDirective(Namespaces.DIRECTIVE_RESOLUTION, Constants.RESOLUTION_OPTIONAL);
      reqs.add(builder.buildRequirement());
    }
  }

  private void doBREE(Resource resource, List<? super Requirement> reqs) throws Exception {
    String breeStr = resource.getManifest().getMainAttributes().getValue(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT);
View Full Code Here

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

    }

    Builder builder = new Builder().setNamespace(Namespaces.NS_NATIVE).addDirective(Namespaces.DIRECTIVE_FILTER, filter);
    if (optional)
      builder.addDirective(Namespaces.DIRECTIVE_RESOLUTION, Namespaces.RESOLUTION_OPTIONAL);
    reqs.add(builder.buildRequirement());
  }

  /*
   * Assemble a compound filter by searching a map of attributes. E.g. the
   * following values:
View Full Code Here

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

        .setNamespace(Namespaces.NS_WIRING_PACKAGE)
        .addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());
     
      copyAttribsAndDirectives(entry.getValue(), builder, Constants.VERSION_ATTRIBUTE, "specification-version");

      reqs.add(builder.buildRequirement());
    }
  }
 
  private void copyAttribsAndDirectives(Map<String, String> input, Builder output, String... ignores) {
    Set<String> ignoreSet = new HashSet<String>(Arrays.asList(ignores));
View Full Code Here

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

        .setNamespace(Namespaces.NS_WIRING_BUNDLE)
        .addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());
     
      copyAttribsAndDirectives(entry.getValue(), builder, Constants.BUNDLE_VERSION_ATTRIBUTE);
     
      reqs.add(builder.buildRequirement());
    }
  }
 
  private void doFragment(Resource resource, List<? super Requirement> reqs) throws Exception {
    Manifest manifest = resource.getManifest();
View Full Code Here

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

     
      Builder builder = new Builder()
        .setNamespace(Namespaces.NS_WIRING_HOST)
        .addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString());
     
      reqs.add(builder.buildRequirement());
    }
  }
 
  private void doExportService(Resource resource, List<? super Capability> caps) throws Exception {
    @SuppressWarnings("deprecation")
View Full Code Here

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

     
      Builder builder = new Builder()
        .setNamespace(Namespaces.NS_SERVICE)
        .addDirective(Namespaces.DIRECTIVE_FILTER, filter.toString())
        .addDirective(Namespaces.DIRECTIVE_EFFECTIVE, Namespaces.EFFECTIVE_ACTIVE);
      reqs.add(builder.buildRequirement());
    }
  }
 
  private void doBREE(Resource resource, List<? super Requirement> reqs) throws Exception {
    String breeStr = resource.getManifest().getMainAttributes().getValue(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT);
View Full Code Here

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

    Builder builder = new Builder()
      .setNamespace(Namespaces.NS_NATIVE)
      .addDirective(Namespaces.DIRECTIVE_FILTER, filter);
    if (optional)
      builder.addDirective(Namespaces.DIRECTIVE_RESOLUTION, Namespaces.RESOLUTION_OPTIONAL);
    reqs.add(builder.buildRequirement());
  }
 
  /*
   * Assemble a compound filter by searching a map of attributes. E.g. the following values:
   *
 
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.