public abstract class AbstractPropertiesFileConfigurator extends Object implements Configurator
| Constructor and Description |
|---|
AbstractPropertiesFileConfigurator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract URL |
findConfigUrl(String configName)
Locates the config file and returns a URL to it.
|
protected URL |
findConfigUrlInDirectory(File directory,
String configName)
Returns a URL to a file with the given name inside the given directory.
|
org.apache.commons.configuration.Configuration |
provideConfiguration(String configName,
Long refreshDelay)
Provides the actual application configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic AbstractPropertiesFileConfigurator()
public org.apache.commons.configuration.Configuration provideConfiguration(String configName, Long refreshDelay) throws org.apache.commons.configuration.ConfigurationException
ConfiguratorprovideConfiguration in interface ConfiguratorconfigName - the name of the config - e.g. used to lookup a properties filerefreshDelay - how often the properties are reloadedorg.apache.commons.configuration.ConfigurationExceptionConfigurator.provideConfiguration(java.lang.String, java.lang.Long)protected abstract URL findConfigUrl(String configName)
configName - Copyright © 2013–2015 JBoss, a division of Red Hat. All rights reserved.