public class FileSystemConfigSource extends MapBackedConfigSource
Each file in the directory corresponds to a property where the file name is the property key and the file textual content is the property value.
For example, if a directory structure looks like:
foo/
├── num.max
└── num.size
new DirConfigSource("foo") will provide 2 properties:
num.maxnum.sizeNested directories are not supported.
| Constructor and Description |
|---|
FileSystemConfigSource(File dir,
int ordinal)
Construct a new instance
|
getProperties, getPropertyNames, getValuegetName, getOrdinal, toStringpublic FileSystemConfigSource(File dir, int ordinal)
dir - the directory, containing configuration filesordinal - the ordinal valueCopyright © 2018–2020. All rights reserved.