What order guarantees are provided for calls to ServiceListener and ServiceTracker?

I am trying to understand what guarantees are provided for official events.

The OSGi specification says that ServiceEvents are synchronous, I used this to mean that the ServiceListener will not receive a serviceChanged () call with UNREGISTERING ServiceEvent until the serviceChanged () call with REGISTERED ServiceEvent ends. Is it correct?

I also looked at the source for ServiceTracker. He seems to be trying to deal with a situation where these two calls to serviceChanged () overlap. Is it possible?

Are there any similar guarantees when calling ServiceTrackerCustomizer?

+5
source share
1

. OSGi, , ( , ). . . - ServiceEvent . , , . , OSGi , .

, , . , , , . , , , . - , . , .

, . , OSGi Equinox . . http://my.safaribooksonline.com/9780321561510

+1

All Articles