com.buglabs.osgi.filesystem.init
Class InstalledBundleMonitor

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

public class InstalledBundleMonitor
extends AbstractFileMonitor
implements FileMonitor

A FileMonitor for bundles that should only be installed. Behaves like in OSGi Start Level way. Bundle installations are always performed regardless of _Run_ Level defined.


Field Summary
 
Fields inherited from class com.buglabs.osgi.filesystem.init.AbstractFileMonitor
bundle, context, file, log, originalFile
 
Constructor Summary
InstalledBundleMonitor(java.io.File f, 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

InstalledBundleMonitor

public InstalledBundleMonitor(java.io.File f,
                              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