Package org.osgi.framework.wiring

Examples of org.osgi.framework.wiring.BundleCapability


    }

    private static BundleCapability getSatisfyingCapability(
        ResolveContext rc, Candidates allCandidates, BundleRequirement req)
    {
        BundleCapability cap = null;

        // If the requiring revision is not resolved, then check in the
        // candidate map for its matching candidate.
        List<BundleCapability> cands = allCandidates.getCandidates(req);
        if (cands != null)
View Full Code Here


           });
  }

  @Override
  public boolean isRequiredBundle(@NotNull String bundleSpec) {
    BundleCapability capability = FelixManifestParser.constructBundleCapability(getBundleSymbolicName(), getBundleVersion().toString());
    if (capability == null) return false// parse error

    List<BundleRequirement> requirements = FelixManifestParser.parseRequireBundleHeader(bundleSpec);
    if (requirements == null) return false// parse error
View Full Code Here

                BundleWiring wiring = bundle.adapt(BundleWiring.class);
                BundleWire reqwire = null;
                if (wiring != null) {
                    for (BundleWire wire : wiring.getRequiredWires(PackageNamespace.PACKAGE_NAMESPACE)) {
                        if (req.equals(wire.getRequirement())) {
                            BundleCapability cap = wire.getCapability();
                            BundleRevision provider = wire.getProvider();
                            LOGGER.debug("Optional requirement {} from {} wires to capability {} provided by {}", req, bundle, cap, provider);
                            reqwire = wire;
                            break;
                        }
View Full Code Here

TOP

Related Classes of org.osgi.framework.wiring.BundleCapability

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.