public class ProvidenceConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProvidenceConfig.Param |
| Constructor and Description |
|---|
ProvidenceConfig(TypeRegistry registry,
Map<String,String> inputParams) |
ProvidenceConfig(TypeRegistry registry,
Map<String,String> inputParams,
List<File> sourceRoots) |
| Modifier and Type | Method and Description |
|---|---|
<M extends PMessage<M,F>,F extends PField> |
load(File file)
Load providence config from the given file.
|
List<ProvidenceConfig.Param> |
params(File file)
Generate a list of params from the providence config, and it's included subconfigs.
|
File |
resolveFile(File ref,
String path)
Resolve a file path within the source roots.
|
public ProvidenceConfig(TypeRegistry registry, Map<String,String> inputParams)
public <M extends PMessage<M,F>,F extends PField> M load(File file) throws IOException
M - The message type.F - The message field type.file - The file to load.IOException - If the file could not be read.SerializerException - If the file could not be parsed.public List<ProvidenceConfig.Param> params(File file) throws IOException
file - The file to load.IOException - If the file could not be read.SerializerException - If the file could not be parsed.public File resolveFile(File ref, String path) throws IOException
ref - A file or directory referencepath - The file reference to resolve.FileNotFoundException - When the file is not found.IOException - When unable to make canonical path.Copyright © 2015–2017 morimekta.net. All rights reserved.