com.buglabs.application
Interface ServiceTrackerHelper.ManagedRunnable

All Known Subinterfaces:
ServiceTrackerHelper.ManagedInlineRunnable
Enclosing class:
ServiceTrackerHelper

public static interface ServiceTrackerHelper.ManagedRunnable

A runnable that provides access to OSGi services passed to ServiceTrackerHelper. Runnable will be started when all service are available, and interrupted if any services become unavailable.


Method Summary
 void run(java.util.Map<java.lang.Object,java.lang.Object> services)
          This is called for execution of application logic when OSGi services are available.
 void shutdown()
          Called directly before the thread is interrupted.
 

Method Detail

run

void run(java.util.Map<java.lang.Object,java.lang.Object> services)
This is called for execution of application logic when OSGi services are available.

Parameters:
services - key contains String of service name, value is service instance.

shutdown

void shutdown()
Called directly before the thread is interrupted. Client may optionally add necessary code to shutdown thread.