ops4j / org.ops4j.pax.scanner

http://www.ops4j.org
2 stars 2 forks source link

Make scanners able to "watch" scanned resources for changes [PAXSCANNER-5] #6

Open ops4j-issues opened 16 years ago

ops4j-issues commented 16 years ago

Alin Dreghiciu created PAXSCANNER-5

Currently scanners know how to scan specific resources and this is done on request of provision service.
It can be interesting if provision service will support "monitoring" of the scanned resource and react on changes. For example for dir scanner the scanned directory can be monitored and if there are bundles added/removed from that directory the bundle will be installed/uninstalled from the platform. For an file scanner it will monitor the scanned file for changes. If content of file changes bundles are again installed/uninstalled.

An option to implement this can be to allow an extra option on the scan-x urls to specify the interval between the scans. If this option is not specified then they will act as before (no rescan) and if it is specified then a scanning process is repeated after the specified time interval.

This should be supported for stand alone use of scanners not when they run as part of pax runner.


Votes: 0, Watches: 0

ops4j-issues commented 16 years ago

Alin Dreghiciu commented

Actually with this approach the dir scanner will act as FileInstall with the advantage being able to monitor as many directories as you need.