org.apache.fulcrum.yaafi.service.shutdown
Class ShutdownEntry

java.lang.Object
  extended by 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
 
Method Summary
 boolean hasChanged()
           
 boolean isUseSystemExit()
           
 java.io.InputStream locate()
          Creates an InputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 use
applicationDir - the home directory of the application
location - the location to monitor for changes
useSystemExit - use System.exit() on shutdown
Method Detail

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.