Search in sources :

Example 11 with Requirement

use of org.apache.felix.bundlerepository.Requirement in project aries by apache.

the class ApplicationResourceImpl method getRequirements.

public Requirement[] getRequirements() {
    if (_requirements != null) {
        Requirement[] reqs = new Requirement[_requirements.size()];
        int index = 0;
        for (Requirement req : _requirements) {
            reqs[index++] = req;
        }
        return reqs;
    } else {
        return null;
    }
}
Also used : Requirement(org.apache.felix.bundlerepository.Requirement)

Aggregations

Requirement (org.apache.felix.bundlerepository.Requirement)11 Capability (org.apache.felix.bundlerepository.Capability)5 FelixRequirementAdapter (org.apache.aries.subsystem.util.felix.FelixRequirementAdapter)4 Test (org.junit.Test)4 Resource (org.osgi.resource.Resource)4 Map (java.util.Map)3 Reason (org.apache.felix.bundlerepository.Reason)3 ArrayList (java.util.ArrayList)2 Resource (org.apache.felix.bundlerepository.Resource)2 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1 ModelledResource (org.apache.aries.application.modelling.ModelledResource)1 ModelledBundleResource (org.apache.aries.application.resolver.obr.ext.ModelledBundleResource)1 Repository (org.apache.felix.bundlerepository.Repository)1 Resolver (org.apache.felix.bundlerepository.Resolver)1 Element (org.w3c.dom.Element)1