Class ShutdownEntry
java.lang.Object
org.apache.fulcrum.yaafi.service.shutdown.ShutdownEntry
Monitors a resource and checks if it has changed
- Author:
- Siegfried Goeschl
-
Constructor Summary
ConstructorsConstructorDescriptionShutdownEntry
(org.apache.avalon.framework.logger.Logger logger, File applicationDir, String location, boolean useSystemExit) Constructor -
Method Summary
-
Constructor Details
-
ShutdownEntry
public ShutdownEntry(org.apache.avalon.framework.logger.Logger logger, File applicationDir, String location, boolean useSystemExit) Constructor- Parameters:
logger
- the logger to useapplicationDir
- the home directory of the applicationlocation
- the location to monitor for changesuseSystemExit
- use System.exit() on shutdown
-
-
Method Details
-
hasChanged
public boolean hasChanged()- Returns:
- has the monitored location changed
-
isUseSystemExit
public boolean isUseSystemExit()- Returns:
- Returns the useSystemExit.
-
locate
Creates an InputStream- Returns:
- InputStream of the location
- Throws:
IOException
- if unable to open the stream
-