org.apache.shale.clay.config.beans
Class ComponentConfigBean.XmlConfigDef

java.lang.Object
  extended by org.apache.shale.clay.config.beans.ComponentConfigBean.XmlConfigDef
All Implemented Interfaces:
ConfigBean.ConfigDefinition
Enclosing class:
ComponentConfigBean

protected class ComponentConfigBean.XmlConfigDef
extends Object
implements ConfigBean.ConfigDefinition

This class defines a single configration file that is watched for changes. In addition to the URL passed to the overloaded constructor, the lastModifed date is kept as a state variable.


Constructor Summary
ComponentConfigBean.XmlConfigDef(URL configUrl)
          Overloaded constructor that requires the target config URL.
 
Method Summary
 URL getConfigUrl()
          Returns the target configuration file url.
 long getLastModified()
          Returns the last time the target configuration file was modified.
 void setLastModified(long lastModified)
          Sets the last time the target configuration file was modified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentConfigBean.XmlConfigDef

public ComponentConfigBean.XmlConfigDef(URL configUrl)

Overloaded constructor that requires the target config URL.

Parameters:
configUrl - file to load
Method Detail

getConfigUrl

public URL getConfigUrl()

Returns the target configuration file url.

Specified by:
getConfigUrl in interface ConfigBean.ConfigDefinition
Returns:
file to load

getLastModified

public long getLastModified()

Returns the last time the target configuration file was modified.

Specified by:
getLastModified in interface ConfigBean.ConfigDefinition
Returns:
last modified timestamp of the config file

setLastModified

public void setLastModified(long lastModified)

Sets the last time the target configuration file was modified.

Specified by:
setLastModified in interface ConfigBean.ConfigDefinition
Parameters:
lastModified - last time the file was changed


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.