org.apache.fulcrum.yaafi.service.shutdown
Class ShutdownEntry
java.lang.Object
org.apache.fulcrum.yaafi.service.shutdown.ShutdownEntry
public class ShutdownEntry
- extends java.lang.Object
Monitors a resource and checks if it has changed
- Author:
- Siegfried Goeschl
Constructor Summary |
ShutdownEntry(org.apache.avalon.framework.logger.Logger logger,
java.io.File applicationDir,
java.lang.String location,
boolean useSystemExit)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShutdownEntry
public ShutdownEntry(org.apache.avalon.framework.logger.Logger logger,
java.io.File applicationDir,
java.lang.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
hasChanged
public boolean hasChanged()
- Returns:
- has the monitored location changed
isUseSystemExit
public boolean isUseSystemExit()
- Returns:
- Returns the useSystemExit.
locate
public java.io.InputStream locate()
throws java.io.IOException
- Creates an InputStream
- Throws:
java.io.IOException
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.