Properties in the service registry should limit themselves to the basic type: 
String + primitives + arrays of collections of those. This allows for remote 
osgi and does not leak classes when you are in a security sensitive 
environment. 

Kind regards,

        Peter Kriens




On 31 aug. 2013, at 15:56, Ewgenij Sokolovski wrote:

> Hello, community. I work with Declarative Services and stumbled across the 
> following problem recently. I want to register a service providing component 
> with properties. According to Declarative Services concept I have to provide 
> an XML file defining these properties. Now, the problem is that my properties 
> are not strings. They are objects returned by a "create" method of another 
> class. This was not a problem with 
> 
> bc.registerService(MyClass.class.getName(), this, props);
> 
> because props could contain any kind of entries. But how can I manage this 
> with Declarative Services? Is that possible at all?
> 
> BR Ewgenij
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to