| Modifier and Type | Method and Description |
|---|---|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.getConfig(Path configFile)
Get config for the given file.
|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.getConfig(Path configFile,
M parent)
Get config for the given with parent.
|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.loadFile(Path configFile)
Load a config file without parent config like on config file includes.
|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.loadFile(Path configFile,
ConfigSupplier<M> parentConfig)
Load a config file overlaying another config.
|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.loadResource(String resourcePath)
Load a config resource without parent config like on config file includes.
|
default ConfigSupplier<M> |
ConfigSupplier.override(Map<String,String> overrides)
Get config with single-field overrides based on the current config.
|
default ConfigSupplier<M> |
ConfigSupplier.override(Map<String,String> overrides,
boolean strict)
Get config with single-field overrides based on the current config.
|
<RM extends net.morimekta.providence.PMessage<RM>> |
ConfigSupplier.reference(net.morimekta.providence.descriptor.PField... fields)
Give a reference to a sub-config based on field selection.
|
| Modifier and Type | Method and Description |
|---|---|
<RM extends net.morimekta.providence.PMessage<RM>> |
FixedConfigSupplier.reference(net.morimekta.providence.descriptor.PField... fields) |
<RM extends net.morimekta.providence.PMessage<RM>> |
UpdatingConfigSupplier.reference(net.morimekta.providence.descriptor.PField... fields) |
| Constructor and Description |
|---|
OverrideConfigSupplier(Clock clock,
ConfigSupplier<Message> parent,
Map<String,String> overrides,
boolean strict)
Create a config that wraps a providence message instance.
|
OverrideConfigSupplier(ConfigSupplier<Message> parent,
Map<String,String> overrides)
Create a config that wraps a providence message instance.
|
OverrideConfigSupplier(ConfigSupplier<Message> parent,
Map<String,String> overrides,
boolean strict)
Create a config that wraps a providence message instance.
|
OverrideConfigSupplier(ConfigSupplier<Message> parent,
Properties overrides)
Create a config that wraps a providence message instance.
|
ProvidenceConfigSupplier(Path configFile,
ConfigSupplier<Message> parentSupplier,
net.morimekta.util.FileWatcher fileWatcher,
ConfigParser configParser,
Clock clock) |
ReferenceConfigSupplier(ConfigSupplier<ParentMessage> parent,
Clock clock,
net.morimekta.providence.descriptor.PField<?>... fieldRefs)
Create a config that wraps a providence message instance, and fetches a message from
within that parent config.
|
ResourceConfigSupplier(Path resourcePath,
ConfigParser configParser,
Clock clock) |
| Modifier and Type | Class and Description |
|---|---|
class |
ConfigWarning
Providence config exceptions are extensions of the serializer exception (as
parsing config can be seen as parsing or de-serializing any serialized
message).
|
| Modifier and Type | Method and Description |
|---|---|
ConfigException |
ConfigException.initCause(Throwable cause) |
ConfigException |
ConfigException.setFile(String file) |
| Modifier and Type | Method and Description |
|---|---|
static Path |
ConfigUtil.canonicalFileLocation(Path file) |
<M extends net.morimekta.providence.PMessage<M>> |
ConfigParser.parseConfig(Path configFile,
M parent)
Parse a providence config into a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestConfigSupplier.testUpdate(String resourceName)
Update the current config and trigger updates.
|
| Constructor and Description |
|---|
TestConfigSupplier(String initialResource,
net.morimekta.providence.descriptor.PMessageDescriptor<M> descriptor)
Start with an initial config value.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigException |
UncheckedConfigException.getCause() |
| Constructor and Description |
|---|
UncheckedConfigException(ConfigException cause) |
Copyright © 2015–2020 morimekta.net. All rights reserved.