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