public class PullFileLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
DEFAULT_HOCON_PULL_FILE_EXTENSIONS |
static Set<String> |
DEFAULT_JAVA_PROPS_PULL_FILE_EXTENSIONS |
static String |
GLOBAL_PROPS_EXTENSION |
static PathFilter |
GLOBAL_PROPS_PATH_FILTER |
| Constructor and Description |
|---|
PullFileLoader(Path rootDirectory,
FileSystem fs,
Collection<String> javaPropsPullFileExtensions,
Collection<String> hoconPullFileExtensions) |
| Modifier and Type | Method and Description |
|---|---|
Config |
loadPullFile(Path path,
Config sysProps,
boolean loadGlobalProperties)
Load a single pull file.
|
Collection<Config> |
loadPullFilesRecursively(Path path,
Config sysProps,
boolean loadGlobalProperties)
Find and load all pull files under a base
Path recursively. |
public static final String GLOBAL_PROPS_EXTENSION
public static final PathFilter GLOBAL_PROPS_PATH_FILTER
public static final Set<String> DEFAULT_JAVA_PROPS_PULL_FILE_EXTENSIONS
public PullFileLoader(Path rootDirectory, FileSystem fs, Collection<String> javaPropsPullFileExtensions, Collection<String> hoconPullFileExtensions)
public Config loadPullFile(Path path, Config sysProps, boolean loadGlobalProperties) throws IOException
path - The Path to the pull file to load, full pathsysProps - A Config used as fallback.loadGlobalProperties - if true, will also load at most one *.properties file per directory from the
rootDirectory to the pull file Path.Config.IOExceptionpublic Collection<Config> loadPullFilesRecursively(Path path, Config sysProps, boolean loadGlobalProperties)
Path recursively.path - base Path where pull files should be found recursively.sysProps - A Config used as fallback.loadGlobalProperties - if true, will also load at most one *.properties file per directory from the
rootDirectory to the pull file Path for each pull file.Configs.