| Package | Description |
|---|---|
| net.morimekta.providence.config | |
| net.morimekta.providence.config.impl | |
| net.morimekta.providence.config.testing |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
default ConfigSupplier<M> |
ConfigSupplier.snapshot()
Get a snapshot of the current config.
|
| Modifier and Type | Method and Description |
|---|---|
<M extends net.morimekta.providence.PMessage<M>> |
ConfigLoader.loadFile(Path configFile,
ConfigSupplier<M> parentConfig)
Load a config file overlaying another config.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FixedConfigSupplier<M extends net.morimekta.providence.PMessage<M>>
A supplier and instance holder for an immutable config instance.
|
class |
OverrideConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>
A supplier of a providence message config based on a parent config
(supplier) and a map of value overrides.
|
class |
ProvidenceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>
A supplier to get a config (aka message) from a providence config.
|
class |
ReferenceConfigSupplier<RefMessage extends net.morimekta.providence.PMessage<RefMessage>,ParentMessage extends net.morimekta.providence.PMessage<ParentMessage>>
A supplier to get a config (aka message) from a resource location.
|
class |
ResourceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>
A supplier to get a config (aka message) from a providence config.
|
class |
UpdatingConfigSupplier<M extends net.morimekta.providence.PMessage<M>>
A supplier and instance holder for config objects.
|
| 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 |
|---|
FixedConfigSupplier(ConfigSupplier<M> supplier)
This essentially makes a static snapshot of the config and keeps the
config instance as a fixed (unmodifiable) config.
|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TestConfigSupplier<M extends net.morimekta.providence.PMessage<M>>
Config supplier meant for testing only.
|
Copyright © 2015–2020 morimekta.net. All rights reserved.