org.apache.fulcrum.yaafi.service.reconfiguration
Class ReconfigurationEntry

java.lang.Object
  extended by org.apache.fulcrum.yaafi.service.reconfiguration.ReconfigurationEntry

public class ReconfigurationEntry
extends java.lang.Object

Monitors a resource and checks if it has changed

Author:
Siegfried Goeschl

Constructor Summary
ReconfigurationEntry(org.apache.avalon.framework.logger.Logger logger, java.io.File applicationDir, java.lang.String location, java.lang.String[] serviceList)
          Constructor
 
Method Summary
 java.lang.String[] getServiceList()
           
 boolean hasChanged()
           
 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

ReconfigurationEntry

public ReconfigurationEntry(org.apache.avalon.framework.logger.Logger logger,
                            java.io.File applicationDir,
                            java.lang.String location,
                            java.lang.String[] serviceList)
Constructor

Parameters:
logger - the logger to use
applicationDir - the home directory of the application
location - the location to monitor for changes
serviceList - the list of services to be reconfigured
Method Detail

hasChanged

public boolean hasChanged()
Returns:
has the monitored location changed

getServiceList

public java.lang.String[] getServiceList()
Returns:
Returns the serviceList.

locate

public java.io.InputStream locate()
                           throws java.io.IOException
Creates an InputStream.

Returns:
the input stream
Throws:
java.io.IOException - the creation failed


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.