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

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

public class ReconfigurationEntry
extends Object

Monitors a resource and checks if it has changed

Author:
Siegfried Goeschl

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

locate

public InputStream locate()
                   throws IOException
Creates an InputStream.

Returns:
the input stream
Throws:
IOException - the creation failed


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.