Hi,

I just want to make sure: there's no method for obtaining the "state
change" lock on a Bundle, right?

I'm asking because I want an action to be performed once the bundle has
reached a particular state. Without this lock I have to follow the usual
procedure for such cases:

* Check for target state

* Register listener

* Check for target state again (because target state may have been
reached between previous check and registration of listener, so listener
is never invoked).

... which gets a bit more complicated still if the action to be
performed when the target state is reached isn't idempotent.

A bundle "state change" lock is mentioned in the
SynchronousBundleListener API, but I couldn't find a way to access it.

Best regards,

    Michael

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

Reply via email to