public class ConfigSources extends java.lang.Object implements java.lang.Iterable<ConfigSource>
Modifier and Type | Class and Description |
---|---|
private static class |
ConfigSources.WeightedConfigSourceComparator |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<ConfigSource> |
sources |
private java.util.concurrent.atomic.AtomicInteger |
sourceWeight |
Constructor and Description |
---|
ConfigSources() |
Modifier and Type | Method and Description |
---|---|
void |
add(ConfigSource source) |
CommandLineConfigSource |
getCommandLineSource() |
Props.Prop |
getProp(java.lang.String key) |
Props |
getProps() |
private java.lang.String |
getValue(java.lang.String arg) |
java.util.Iterator<ConfigSource> |
iterator() |
java.util.ListIterator<ConfigSource> |
reverseListIterator() |
java.lang.String |
toString() |
private java.util.LinkedList<ConfigSource> sources
private java.util.concurrent.atomic.AtomicInteger sourceWeight
public void add(ConfigSource source) throws java.io.IOException
java.io.IOException
public CommandLineConfigSource getCommandLineSource()
public Props.Prop getProp(java.lang.String key)
public Props getProps()
private java.lang.String getValue(java.lang.String arg)
public java.util.Iterator<ConfigSource> iterator()
iterator
in interface java.lang.Iterable<ConfigSource>
public java.util.ListIterator<ConfigSource> reverseListIterator()
public java.lang.String toString()
toString
in class java.lang.Object