public ServiceRegistration < FileMonitor > monitorFiles ( Collection < String > paths , long monitorInterval ) { BundleContext bundleContext = actionable . getBundleContext ( ) ; final Hashtable < String , Object > fileMonitorProps = new Hashtable < String , Object > ( ) ; fileMonitorProps . put ( FileMonitor . MONITOR_FILES , paths ) ; fileMonitorProps . put ( FileMonitor . MONITOR_INTERVAL , monitorInterval ) ; return bundleContext . registerService ( FileMonitor . class , this , fileMonitorProps ) ; }
Registers this file monitor to start monitoring the specified files at the specified interval .