public class FileSource<T> extends AbstractSource<T> implements Source<T>
The path may contain system environment variables, which must be placed between
"${" and "}". For example: "${TEMP}/file.txt"
| Constructor and Description |
|---|
FileSource(String path)
Builds a new configuration source for specific local file from the file system.
|
| Modifier and Type | Method and Description |
|---|---|
T |
load(Mapper<T> mapper)
Applies a specific configuration loading strategy and returns the retrieved data,
throwing an exception if the operation fails.
|
equals, hashCode, load, toStringpublic FileSource(String path)
path - the file path for this configuration source.Copyright © 2021. All rights reserved.