Search in sources :

Example 1 with BPMetadata

use of org.apache.aries.jmx.blueprint.codec.BPMetadata in project aries by apache.

the class BlueprintMetadata method getComponentMetadata.

public CompositeData getComponentMetadata(long containerServiceId, String componentId) throws IOException {
    BlueprintContainer container = getBlueprintContainer(containerServiceId);
    ComponentMetadata componentMetadata = container.getComponentMetadata(componentId);
    BPMetadata metadata = Util.metadata2BPMetadata(componentMetadata);
    return metadata.asCompositeData();
}
Also used : BlueprintContainer(org.osgi.service.blueprint.container.BlueprintContainer) BPMetadata(org.apache.aries.jmx.blueprint.codec.BPMetadata) ComponentMetadata(org.osgi.service.blueprint.reflect.ComponentMetadata)

Aggregations

BPMetadata (org.apache.aries.jmx.blueprint.codec.BPMetadata)1 BlueprintContainer (org.osgi.service.blueprint.container.BlueprintContainer)1 ComponentMetadata (org.osgi.service.blueprint.reflect.ComponentMetadata)1