Klasse ShutdownEntry

java.lang.Object
org.apache.fulcrum.yaafi.service.shutdown.ShutdownEntry

public class ShutdownEntry extends Object
Monitors a resource and checks if it has changed
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • ShutdownEntry

      public ShutdownEntry(org.apache.avalon.framework.logger.Logger logger, File applicationDir, String location, boolean useSystemExit)
      Constructor
      Parameter:
      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
  • Methodendetails

    • hasChanged

      public boolean hasChanged()
      Gibt zurück:
      has the monitored location changed
    • isUseSystemExit

      public boolean isUseSystemExit()
      Gibt zurück:
      Returns the useSystemExit.
    • locate

      public InputStream locate() throws IOException
      Creates an InputStream
      Gibt zurück:
      InputStream of the location
      Löst aus:
      IOException - if unable to open the stream