On 10/4/09 22:02, Guo Du wrote:
On Sun, Oct 4, 2009 at 8:37 PM, Vlatko Davidovski<[email protected]> wrote:
Or, should I use ServiceTrackerCustomizer in such a case?
Regards,
Vlatko
You may also register a org.osgi.framework.ServiceListener from
aparat-registry to take action on ServiceEvent.REGISTERED for your
service interface.
If you need to listen for service events, using the ServiceTracker is
probably easier than using the base API...or you could use something
like DS or iPOJO.
The whole point, though, is if one of your components depends on the
other, this dependencies should be realized via a service where it
listens for the service to become available. This eliminates the startup
ordering issue. How you achieve this (i.e., base API, ServiceTracker,
iPOJO, etc.) is just an implementation detail.
-> richard
-Guo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]