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 and Description |
|---|
ComponentConfigBean.XmlConfigDef(URL configUrl)
Overloaded constructor that requires the target config
URL. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ComponentConfigBean.XmlConfigDef(URL configUrl)
Overloaded constructor that requires the target config URL.
configUrl - file to loadpublic URL getConfigUrl()
Returns the target configuration file url.
getConfigUrl in interface ConfigBean.ConfigDefinitionpublic long getLastModified()
Returns the last time the target configuration file was modified.
getLastModified in interface ConfigBean.ConfigDefinitionpublic void setLastModified(long lastModified)
Sets the last time the target configuration file was modified.
setLastModified in interface ConfigBean.ConfigDefinitionlastModified - last time the file was changedCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.