If you need to know the old service properties, you will have had to save a copy of them.
 
You don't need an identity map. Just use the ServiceReference as the key.
 
--

BJ Hargrave
Senior Technical Staff Member, IBM // office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788
[email protected]
 
 
----- Original message -----
From: Bernd Eckenfels <[email protected]>
Sent by: [email protected]
To: [email protected]
Cc:
Subject: [osgi-dev] properties of service pre modification
Date: Fri, Mar 4, 2016 5:37 PM
 
Hello,

when a service is modified via ServiceRegistration.setProperties the
documentation tells me that the properties are updated and then
MODIFIED is fired.

If I use a service tracker modifiedService(ref,service) is called with
the new properties in the service reference.

I haven't found an easy way to get the old properties. Is it correct
that I would have to keep a idenditymap based on the service instance to
remember those keys?

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

 

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

Reply via email to