Search in sources :

Example 21 with MetaTypeInformation

use of org.osgi.service.metatype.MetaTypeInformation in project feature-flags-for-osgi by amitjoy.

the class ManagerHelper method getPIDs.

public static List<String> getPIDs(final Bundle bundle, final MetaTypeService metaTypeService) {
    requireNonNull(bundle, "Bundle Instance cannot be null");
    requireNonNull(metaTypeService, "MetaType Service Instance cannot be null");
    final MetaTypeInformation metatypeInfo = metaTypeService.getMetaTypeInformation(bundle);
    return ManagerHelper.asList(metatypeInfo.getPids());
}
Also used : MetaTypeInformation(org.osgi.service.metatype.MetaTypeInformation)

Aggregations

MetaTypeInformation (org.osgi.service.metatype.MetaTypeInformation)21 Bundle (org.osgi.framework.Bundle)14 MetaTypeService (org.osgi.service.metatype.MetaTypeService)12 ObjectClassDefinition (org.osgi.service.metatype.ObjectClassDefinition)9 ArrayList (java.util.ArrayList)7 HashMap (java.util.HashMap)6 Dictionary (java.util.Dictionary)5 Hashtable (java.util.Hashtable)5 Map (java.util.Map)5 BundleContext (org.osgi.framework.BundleContext)4 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)3 Service (org.codice.ddf.admin.core.api.Service)3 Arrays (java.util.Arrays)2 Collections (java.util.Collections)2 List (java.util.List)2 Locale (java.util.Locale)2 Collectors (java.util.stream.Collectors)2 Stream (java.util.stream.Stream)2 BundleInfo (org.apache.karaf.features.BundleInfo)2 SystemService (org.apache.karaf.system.SystemService)2