felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject How to use a service immediately after its activation?
Date Tue, 18 Mar 2014 17:49:28 GMT
Hi,

I'd like to interact with a given service as soon as it is created, ideally
before other clients use it.

Is it safe to use a service in the
ServiceListener.serviceChanged(ServiceReference R) method, grabbing it from
R?

I suppose there's no way to prioritize a given ServiceListener, but at
least my code would run as soon as the service becomes available.

Or is there a better way?

-Bertrand

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message