public class ConfigMapper extends Object
| Constructor and Description |
|---|
ConfigMapper(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
loadFiles(Class<T> type,
List<File> files,
List<String> resources)
Loads the given configuration file using the mapper, falling back to the given resources.
|
<T> T |
loadResources(Class<T> type,
List<String> resources)
Loads the given resources using the configuration mapper.
|
<T> T |
loadResources(Class<T> type,
String... resources)
Loads the given resources using the configuration mapper.
|
public ConfigMapper(ClassLoader classLoader)
public <T> T loadFiles(Class<T> type, List<File> files, List<String> resources)
T - the resulting typetype - the type to loadfiles - the files to loadresources - the resources to which to fall backpublic <T> T loadResources(Class<T> type, String... resources)
T - the resulting typetype - the type to loadresources - the resources to loadCopyright © 2013–2018. All rights reserved.