The point is that the party registering the service is the party who is 
permitted to modify the service's properties or unregister the service. 
That is, the ServiceRegistration object is a capability.

Now that party can delegate that responsibility to another by sharing the 
ServiceRegistration object in some way. But that party must define the 
mechanism by which it shares the ServiceRegistration.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
hargr...@us.ibm.com

office: +1 386 848 1781
mobile: +1 386 848 3788




From:   Frank Langel <fr...@frankjlangel.com>
To:     <osgi-dev@mail.osgi.org>
Date:   2015/05/20 11:14
Subject:        [osgi-dev] Change service properties using OSGI API
Sent by:        osgi-dev-boun...@mail.osgi.org



Hi,

I would like to change and add properties to an OSGI service. The only way 
I know requires access to the ServiceRegistration object of the service 
instance.
However, this ServiceRegistration object cannot be retrieved from the OSGI 
registry, but is returned only when we register the service and therefore 
hardly available to a 3rd party that hasn’t created the service.

Is there any other way to change service properties or obtain the 
ServiceRegistration object?
Thanks in advance
Frank
_______________________________________________
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