Search in sources :

Example 1 with BundleWiringData

use of org.apache.aries.jmx.codec.BundleWiringData in project aries by apache.

the class BundleWiringState method getRevisionWiring.

private CompositeData getRevisionWiring(BundleRevision revision, int revisionID, String namespace, Map<BundleRevision, Integer> revisionIDMap) {
    BundleWiring wiring = revision.getWiring();
    List<BundleCapability> capabilities = wiring.getCapabilities(namespace);
    List<BundleRequirement> requirements = wiring.getRequirements(namespace);
    List<BundleWire> providedWires = wiring.getProvidedWires(namespace);
    List<BundleWire> requiredWires = wiring.getRequiredWires(namespace);
    BundleWiringData data = new BundleWiringData(wiring.getBundle().getBundleId(), revisionID, capabilities, requirements, providedWires, requiredWires, revisionIDMap);
    return data.toCompositeData();
}
Also used : BundleWiring(org.osgi.framework.wiring.BundleWiring) BundleWiringData(org.apache.aries.jmx.codec.BundleWiringData) BundleCapability(org.osgi.framework.wiring.BundleCapability) BundleWire(org.osgi.framework.wiring.BundleWire) BundleRequirement(org.osgi.framework.wiring.BundleRequirement)

Aggregations

BundleWiringData (org.apache.aries.jmx.codec.BundleWiringData)1 BundleCapability (org.osgi.framework.wiring.BundleCapability)1 BundleRequirement (org.osgi.framework.wiring.BundleRequirement)1 BundleWire (org.osgi.framework.wiring.BundleWire)1 BundleWiring (org.osgi.framework.wiring.BundleWiring)1