Package aQute.bnd.osgi.resource

Examples of aQute.bnd.osgi.resource.CapReqBuilder.buildCapability()


                    } else {
                        builder.addAttribute(attrKey, entry.getValue().getTyped(attrKey));
                    }
                }
                builder.setResource(frameworkResource);
                capIndex.addCapability(builder.buildCapability());
            }
        }
    }

    public void addFrameworkCapability(CapReqBuilder builder) {
View Full Code Here


        // See bug 329, https://github.com/bndtools/bnd/issues/329
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getCapabilityName());
        builder.addAttribute(ExecutionEnvironmentNamespace.CAPABILITY_VERSION_ATTRIBUTE, ee.getCapabilityVersion());
        builder.setResource(framework);
        index.addCapability(builder.buildCapability());

        // Compatibility with old version...
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getEEName());
        builder.setResource(framework);
View Full Code Here

        // Compatibility with old version...
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getEEName());
        builder.setResource(framework);
        index.addCapability(builder.buildCapability());
    }

    private void loadJREPackages() {
        InputStream stream = FrameworkResourceRepository.class.getResourceAsStream(ee.name() + ".properties");
        if (stream != null) {
View Full Code Here

                    } else {
                        builder.addAttribute(attrKey, entry.getValue().getTyped(attrKey));
                    }
                }
                builder.setResource(frameworkResource);
                capIndex.addCapability(builder.buildCapability());
            }
        }
    }

    public void addFrameworkCapability(CapReqBuilder builder) {
View Full Code Here

        // See bug 329, https://github.com/bndtools/bnd/issues/329
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getCapabilityName());
        builder.addAttribute(ExecutionEnvironmentNamespace.CAPABILITY_VERSION_ATTRIBUTE, ee.getCapabilityVersion());
        builder.setResource(framework);
        index.addCapability(builder.buildCapability());

        // Compatibility with old version...
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getEEName());
        builder.setResource(framework);
View Full Code Here

        // Compatibility with old version...
        builder = new CapReqBuilder(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE);
        builder.addAttribute(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, ee.getEEName());
        builder.setResource(framework);
        index.addCapability(builder.buildCapability());
    }

    private void loadJREPackages() {
        InputStream stream = FrameworkResourceRepository.class.getResourceAsStream(ee.name() + ".properties");
        if (stream != null) {
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.