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 FileSystemConfigSource(new File("foo"), 100) will provide 2 properties:
num.maxnum.sizeNested directories are not supported.
| Constructor and Description |
|---|
FileSystemConfigSource(File dir) |
FileSystemConfigSource(File dir,
int ordinal)
Construct a new instance
|
FileSystemConfigSource(String dir) |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue(String name) |
getProperties, getPropertyNamesgetName, getOrdinal, toStringpublic FileSystemConfigSource(File dir)
public FileSystemConfigSource(String dir)
public FileSystemConfigSource(File dir, int ordinal)
dir - the directory, containing configuration filesordinal - the ordinal valuepublic String getValue(String name)
getValue in interface org.eclipse.microprofile.config.spi.ConfigSourcegetValue in class MapBackedConfigSourceCopyright © 2018–2021. All rights reserved.