Is there a reason that a bundle cannot provide both meta type documents and 
meta type provider services? At least that is what the code says in the Felix 
implementation.

I would like bundles to be able to provide meta type XML documents for 
properties they support, but also have a combined meta type OCD for the 
bundle’s properties plus the properties for the base interfaces they implement. 
As in, when the bundles are registered with the system, a PluginMgmtService 
would then create a new OCD that contains attributes from the bundle as well as 
core attributes that apply to all bundles in the system. This OCD would be 
provided with a component that implements ManagedServiceFactory and 
MetaTypeProvider interface for each registered bundle. This way, each 
configuration created from the factory defined PID would have metadata for core 
properties and plug-in specific properties. However, bundle provided meta type 
services are ignored if the bundle contains any meta type XML documents.

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

Reply via email to