Hi,

Jeremias Maerki schrieb:
> Am I right that it is not possible to associate a MetaTypeProvider
> interface with a ManagedService(Factory) generated through Declarative
> Services and only the approach with OSGI-INF/metatype/metatype.xml is
> possible?

Point is, that a Declarative Services component does not register itself
 as a ManagedService[Factory]. It is the Declarative Services runtime
which takes care to aquire the configuration on behalf of the components.

On the other hand I would say, that it is perfectly ok for Declarative
Services component to declare themselves as being MetaTypeProvider
services instead of just relying on metatype.xml.

> 
> I've written an annotation-based meta type provider for myself which
> works fine for self-written ManagedService(Factory) implementations but
> it seems I can't use that together with Declarative Service. Unless I
> missed something, of course.

Why can't you use it with Declarative Services ? As I said, the
component would just be declared as a MetaTypeProvider (but not a
ManagedService[Factory]) and it should work.

Unless, I myself am missing something.

Regards
Felix

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

Reply via email to