public class URLConfigurationSource extends Object implements PolledConfigurationSource
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_URL
System property name to define a set of URLs to be used by the
default constructor.
|
static String |
DEFAULT_CONFIG_FILE_FROM_CLASSPATH |
static String |
DEFAULT_CONFIG_FILE_NAME
Default configuration file name to be used by default constructor.
|
Constructor and Description |
---|
URLConfigurationSource()
Create the instance for the default list of URLs, which is composed by the following order
A configuration file (default name to be
config.properties , see DEFAULT_CONFIG_FILE_NAME ) on the classpath
A list of URLs defined by system property "archaius.configurationSource.additionalUrls" with values separated by comma "," . |
URLConfigurationSource(String... urls)
Create an instance with a list URLs to be used.
|
URLConfigurationSource(URL... urls)
Create an instance with a list URLs to be used.
|
Modifier and Type | Method and Description |
---|---|
List<URL> |
getConfigUrls() |
PollResult |
poll(boolean initial,
Object checkPoint)
Retrieve the content of the property files.
|
String |
toString() |
public static final String CONFIG_URL
public static final String DEFAULT_CONFIG_FILE_NAME
configurationSource.defaultFileName
public static final String DEFAULT_CONFIG_FILE_FROM_CLASSPATH
public URLConfigurationSource(String... urls)
urls
- list of URLs to be usedpublic URLConfigurationSource(URL... urls)
urls
- list of URLs to be usedpublic URLConfigurationSource()
config.properties
, see DEFAULT_CONFIG_FILE_NAME
) on the classpath
","
.
public PollResult poll(boolean initial, Object checkPoint) throws IOException
poll
in interface PolledConfigurationSource
initial
- this parameter is ignored by the implementationcheckPoint
- this parameter is ignored by the implementationIOException
- IOException occurred in file operationCopyright © 2016. All Rights Reserved.