com.buglabs.osgi.filesystem.init
Class RunLevelFileMonitor

java.lang.Object
  extended by com.buglabs.osgi.filesystem.init.AbstractFileMonitor
      extended by com.buglabs.osgi.filesystem.init.RunLevelFileMonitor
All Implemented Interfaces:
FileMonitor

public class RunLevelFileMonitor
extends AbstractFileMonitor
implements FileMonitor

A FileMonitor to monitor bundles that should be started when conditions are right.


Field Summary
 
Fields inherited from class com.buglabs.osgi.filesystem.init.AbstractFileMonitor
bundle, context, file, log, originalFile
 
Constructor Summary
RunLevelFileMonitor(java.io.File f, StartLevel ssvc, BundleContext context)
           
 
Method Summary
 boolean update()
           
 
Methods inherited from class com.buglabs.osgi.filesystem.init.AbstractFileMonitor
createBundleURI, fileChanged, fileDeleted, getFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.buglabs.osgi.filesystem.init.FileMonitor
getFile
 

Constructor Detail

RunLevelFileMonitor

public RunLevelFileMonitor(java.io.File f,
                           StartLevel ssvc,
                           BundleContext context)
                    throws java.io.IOException,
                           BundleException
Throws:
java.io.IOException
BundleException
Method Detail

update

public boolean update()
               throws java.lang.Exception
Specified by:
update in interface FileMonitor
Specified by:
update in class AbstractFileMonitor
Returns:
true if update occurred successfully, false if the bundle has been removed from the system.
Throws:
java.lang.Exception