Hi,

Am 24.09.2012 um 14:13 schrieb Humeniuk, David P:

> Is there a way to get a list of factory PIDs from the ConfigurationAdmin
> service (or elsewhere) if there isn't MetaTypeInformation associated
> with the ManagedFactoryService?

Not directly.

But you can get a list of existing configurations and assemble the list of 
(existing) factory PIDs by collecting the Configuration.getFactoryPid() values.

This only works with existing configuration.

You might also want to ask the service registry for registered 
ManagedServiceFactory services and collect their registered service PIDs, which 
are used as the factory PID by the Configuration Admin Service.

That's all you can do without having the Metatype Service to your help. And 
yes, this may be incomplete because for example for Declarative Services 
component configurable with factory configuration there may or may not be a 
ManagedServiceFactory to derive the factory PID from.

Regards
Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to