public class ModuleLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MODULE_CONFIG_FILE_NAME
The file name pattern describing module configuration files.
|
| Constructor and Description |
|---|
ModuleLoader(ConfigResourceLoader configResourceLoader)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<org.apache.commons.configuration.Configuration> |
getConfigurations(List<String> dependentModules)
Get a stream of configurations in descending order of precedence given a list of dependent modules.
|
static void |
validateModuleName(String name)
A method used to apply validation rules to module names found in resource property files.
|
public static final String MODULE_CONFIG_FILE_NAME
public ModuleLoader(ConfigResourceLoader configResourceLoader)
configResourceLoader - The configuration resource loader used to load modulespublic Stream<org.apache.commons.configuration.Configuration> getConfigurations(List<String> dependentModules)
dependentModules - The list of modules which are depended onpublic static void validateModuleName(String name) throws SystemConfigException
name - The name under test.SystemConfigException - when a name fails a validation ruleCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.