Package org.apache.felix.bundlerepository.impl

Examples of org.apache.felix.bundlerepository.impl.CapabilityImpl


        // convert capabilities
        org.osgi.service.obr.Capability[] c = resource.getCapabilities();
        if (c != null) {
            capabilities = new Capability[c.length];
            for (int i = 0; i < c.length; i++) {
                CapabilityImpl cap = new CapabilityImpl(c[i].getName());
                Iterator iter = c[i].getProperties().entrySet().iterator();    
                int j = 0;
                while (iter.hasNext()) {
                    Map.Entry entry = (Map.Entry) iter.next();
                    cap.addProperty((String) entry.getKey(), null, (String) entry.getValue());
                }
               
                capabilities[i] = cap;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.bundlerepository.impl.CapabilityImpl

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.