| |
|
| java.lang.Object java.lang.Thread org.mortbay.jetty.plugin.util.Scanner
Scanner | public class Scanner extends Thread (Code) | | Scanner
Scans a list of files and directories on a periodic basis to detect changes.
If a change in any of the watched files is found, then the target LifeCycle
objects are stopped and restarted.
This is used by the Jetty Maven plugin to watch the classes, dependencies
and web.xml file of a web application and to restart the webapp if any
of the above changes.
author: janb |
Inner Class :public interface Listener | |
Constructor Summary | |
public | Scanner() |
getListeners | public List getListeners()(Code) | | List of Scanner.Listener implementations.
Returns the listeners. |
getRoots | public List getRoots()(Code) | | The files and directory roots to watch. Directories will be
recursively scanned.
Returns the roots. |
getScanInterval | public int getScanInterval()(Code) | | Returns the scanInterval. |
run | public void run()(Code) | | Loop every scanInterval seconds until interrupted, checking to see if
any of the watched files have changed. If they have, stop and restart
the LifeCycle targets.
See Also: java.lang.Runnable.run |
setListeners | public void setListeners(List listeners)(Code) | | Parameters: listeners - The listeners to set. |
setRoots | public void setRoots(List roots)(Code) | | Parameters: roots - The roots to set. |
setScanInterval | public void setScanInterval(int scanInterval)(Code) | | Parameters: scanInterval - The scanInterval in seconds to set. |
|
|
|