Is there a way to get a list of configurations for a single factory PID
if the properties have not been set for the configuration?  If not, is
there a reason why you cannot do so?

 

ConfigurationAdmin.listConfigurations will return an array of
Configuration objects but only those objects which have non-null
properties.  Therefore, if you use
ConfigurationAdmin.createFactoryConfiguration to create configurations,
you have to make sure you keep track of the returned configurations or
at least the PID.  This works okay if there is a single consumer of the
API, but not if you have multiple consumers of the API.  For instance,
if you have one consumer that creates the configuration and another that
wants to actually set the properties of the configuration, the latter
consumer has no way of knowing about the already created configurations.

 

This is in regards to 4.3 version of the spec, but if anything is
changing in a newer version I would like to know as well.

 

Thanks,

Dave Humeniuk

Software Engineer

Sensor System Division (SSD)

University of Dayton Research Institute

 

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to