com.buglabs.osgi.filesystem.control
Class ControlManager

java.lang.Object
  extended by com.buglabs.osgi.filesystem.control.ControlManager
All Implemented Interfaces:
ServiceTrackerHelper.ManagedInlineRunnable, ServiceTrackerHelper.ManagedRunnable

public class ControlManager
extends java.lang.Object
implements ServiceTrackerHelper.ManagedInlineRunnable


Field Summary
static java.lang.String CONTROL_DIR_NAME
           
 
Constructor Summary
ControlManager(java.io.File rootDir, BundleContext context)
           
 
Method Summary
 void run(java.util.Map services)
          This is called for execution of application logic when OSGi services are available.
 void shutdown()
          Called directly before the thread is interrupted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_DIR_NAME

public static final java.lang.String CONTROL_DIR_NAME
See Also:
Constant Field Values
Constructor Detail

ControlManager

public ControlManager(java.io.File rootDir,
                      BundleContext context)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

run

public void run(java.util.Map services)
Description copied from interface: ServiceTrackerHelper.ManagedRunnable
This is called for execution of application logic when OSGi services are available.

Specified by:
run in interface ServiceTrackerHelper.ManagedRunnable
Parameters:
services - key contains String of service name, value is service instance.

shutdown

public void shutdown()
Description copied from interface: ServiceTrackerHelper.ManagedRunnable
Called directly before the thread is interrupted. Client may optionally add necessary code to shutdown thread.

Specified by:
shutdown in interface ServiceTrackerHelper.ManagedRunnable