Klasse ShutdownEntry
java.lang.Object
org.apache.fulcrum.yaafi.service.shutdown.ShutdownEntry
Monitors a resource and checks if it has changed
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungShutdownEntry
(org.apache.avalon.framework.logger.Logger logger, File applicationDir, String location, boolean useSystemExit) Constructor -
Methodenübersicht
-
Konstruktordetails
-
ShutdownEntry
public ShutdownEntry(org.apache.avalon.framework.logger.Logger logger, File applicationDir, String location, boolean useSystemExit) Constructor- Parameter:
logger
- the logger to useapplicationDir
- the home directory of the applicationlocation
- the location to monitor for changesuseSystemExit
- use System.exit() on shutdown
-
-
Methodendetails
-
hasChanged
public boolean hasChanged()- Gibt zurück:
- has the monitored location changed
-
isUseSystemExit
public boolean isUseSystemExit()- Gibt zurück:
- Returns the useSystemExit.
-
locate
Creates an InputStream- Gibt zurück:
- InputStream of the location
- Löst aus:
IOException
- if unable to open the stream
-