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