A B C D F G H I K L N O P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addListener(ConfigListener<M>) - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Add a listener to changes to this config.
- addListener(ConfigListener<M>) - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- addListener(ConfigListener<M>) - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
B
- B64 - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- BINARY - net.morimekta.providence.config.parser.ConfigTokenType
C
- canonical(Path) - Method in interface net.morimekta.providence.config.util.ContentResolver
- canonical(Path) - Method in class net.morimekta.providence.config.util.FileContentResolver
- canonical(Path) - Method in class net.morimekta.providence.config.util.ResourceContentResolver
- canonicalFileLocation(Path) - Static method in class net.morimekta.providence.config.parser.ConfigUtil
- close() - Method in class net.morimekta.providence.config.ConfigLoader
- ConfigException - Exception in net.morimekta.providence.config.parser
-
Providence config exceptions are extensions of the serializer exception (as parsing config can be seen as parsing or de-serializing any serialized message).
- ConfigException(String, Object...) - Constructor for exception net.morimekta.providence.config.parser.ConfigException
- ConfigException(Throwable, String, Object...) - Constructor for exception net.morimekta.providence.config.parser.ConfigException
- ConfigException(ConfigToken, String, Object...) - Constructor for exception net.morimekta.providence.config.parser.ConfigException
- ConfigException(JsonSerializerException) - Constructor for exception net.morimekta.providence.config.parser.ConfigException
- ConfigException(PrettyException) - Constructor for exception net.morimekta.providence.config.parser.ConfigException
- ConfigLexer - Class in net.morimekta.providence.config.parser
- ConfigLexer(Reader) - Constructor for class net.morimekta.providence.config.parser.ConfigLexer
- ConfigListener<M extends net.morimekta.providence.PMessage<M>> - Interface in net.morimekta.providence.config
-
Interface for handling reactions to update of a config message.
- ConfigLoader - Class in net.morimekta.providence.config
-
Providence config loader.
- ConfigLoader(TypeRegistry) - Constructor for class net.morimekta.providence.config.ConfigLoader
-
Make a non-strict config instance.
- ConfigLoader(TypeRegistry, Consumer<ConfigWarning>) - Constructor for class net.morimekta.providence.config.ConfigLoader
-
Make a non-strict config instance.
- ConfigLoader(TypeRegistry, FileWatcher, Consumer<ConfigWarning>, boolean) - Constructor for class net.morimekta.providence.config.ConfigLoader
-
Make a config instance.
- ConfigLoader(TypeRegistry, FileWatcher, Consumer<ConfigWarning>, boolean, Clock) - Constructor for class net.morimekta.providence.config.ConfigLoader
-
Make a config instance.
- ConfigParser - Class in net.morimekta.providence.config.parser
-
This parser parses config files.
- ConfigParser(TypeRegistry, ContentResolver, Consumer<ConfigWarning>, boolean) - Constructor for class net.morimekta.providence.config.parser.ConfigParser
-
Create a providence config parser instance.
- ConfigSupplier<M extends net.morimekta.providence.PMessage<M>> - Interface in net.morimekta.providence.config
-
A supplier and instance holder for config objects.
- configTimestamp() - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Get the last update time as a millisecond timestamp.
- configTimestamp() - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- configTimestamp() - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
- ConfigToken - Class in net.morimekta.providence.config.parser
- ConfigToken(char[], int, int, ConfigTokenType, int, int) - Constructor for class net.morimekta.providence.config.parser.ConfigToken
-
Create a slice instance.
- ConfigTokenizer - Class in net.morimekta.providence.config.parser
- ConfigTokenType - Enum in net.morimekta.providence.config.parser
- ConfigUtil - Class in net.morimekta.providence.config.parser
-
Utilities for helping with providence config handling.
- ConfigWarning - Exception in net.morimekta.providence.config.parser
-
Providence config exceptions are extensions of the serializer exception (as parsing config can be seen as parsing or de-serializing any serialized message).
- ConfigWarning(ConfigToken, String, Object...) - Constructor for exception net.morimekta.providence.config.parser.ConfigWarning
- ContentResolver - Interface in net.morimekta.providence.config.util
-
Untility for resolving file paths and opening them.
D
- displayString() - Method in exception net.morimekta.providence.config.util.UncheckedConfigException
F
- file - Variable in exception net.morimekta.providence.config.parser.ConfigException
- FileContentResolver - Class in net.morimekta.providence.config.util
- FileContentResolver() - Constructor for class net.morimekta.providence.config.util.FileContentResolver
- FixedConfigSupplier<M extends net.morimekta.providence.PMessage<M>> - Class in net.morimekta.providence.config.impl
-
A supplier and instance holder for an immutable config instance.
- FixedConfigSupplier(M) - Constructor for class net.morimekta.providence.config.impl.FixedConfigSupplier
-
Initialize with an initial config instance.
- FixedConfigSupplier(M, long, Clock) - Constructor for class net.morimekta.providence.config.impl.FixedConfigSupplier
-
Initialize with an initial config instance.
- FixedConfigSupplier(ConfigSupplier<M>) - Constructor for class net.morimekta.providence.config.impl.FixedConfigSupplier
-
This essentially makes a static snapshot of the config and keeps the config instance as a fixed (unmodifiable) config.
G
- genericToken(char[], int, int, ConfigTokenType, int, int) - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
- get() - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- get() - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
- getCause() - Method in exception net.morimekta.providence.config.util.UncheckedConfigException
- getClock() - Method in interface net.morimekta.providence.config.ConfigSupplier
- getClock() - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- getClock() - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
- getConfig(Path) - Method in class net.morimekta.providence.config.ConfigLoader
-
Get config for the given file.
- getConfig(Path, M) - Method in class net.morimekta.providence.config.ConfigLoader
-
Get config for the given with parent.
- getError() - Method in exception net.morimekta.providence.config.parser.ConfigException
- getError() - Method in exception net.morimekta.providence.config.parser.ConfigWarning
- getFile() - Method in exception net.morimekta.providence.config.parser.ConfigException
- getName() - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Get a simple descriptive name for this config supplier.
- getName() - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- getName() - Method in class net.morimekta.providence.config.impl.OverrideConfigSupplier
- getName() - Method in class net.morimekta.providence.config.impl.ProvidenceConfigSupplier
- getName() - Method in class net.morimekta.providence.config.impl.ReferenceConfigSupplier
- getName() - Method in class net.morimekta.providence.config.impl.ResourceConfigSupplier
- getName() - Method in class net.morimekta.providence.config.testing.TestConfigSupplier
H
- HEX - Static variable in class net.morimekta.providence.config.parser.ConfigToken
I
- IDENTIFIER - net.morimekta.providence.config.parser.ConfigTokenType
- identifierToken(char[], int, int, int, int) - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
- initCause(Throwable) - Method in exception net.morimekta.providence.config.parser.ConfigException
- isDoubleQualifiedIdentifier() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isIdentifier() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isInteger() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isQualifiedIdentifier() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isReal() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isReferenceIdentifier() - Method in class net.morimekta.providence.config.parser.ConfigToken
- isString() - Method in class net.morimekta.providence.config.parser.ConfigToken
K
- kEntrySep - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kFieldValueSep - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kIdentifierSep - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kKeyValueSep - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kLineSep - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kListEnd - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kListStart - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kMessageEnd - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kMessageStart - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kParamsEnd - Static variable in class net.morimekta.providence.config.parser.ConfigToken
- kParamsStart - Static variable in class net.morimekta.providence.config.parser.ConfigToken
L
- loadFile(Path) - Method in class net.morimekta.providence.config.ConfigLoader
-
Load a config file without parent config like on config file includes.
- loadFile(Path, ConfigSupplier<M>) - Method in class net.morimekta.providence.config.ConfigLoader
-
Load a config file overlaying another config.
- loadResource(String) - Method in class net.morimekta.providence.config.ConfigLoader
-
Load a config resource without parent config like on config file includes.
N
- net.morimekta.providence.config - package net.morimekta.providence.config
- net.morimekta.providence.config.impl - package net.morimekta.providence.config.impl
- net.morimekta.providence.config.parser - package net.morimekta.providence.config.parser
- net.morimekta.providence.config.testing - package net.morimekta.providence.config.testing
- net.morimekta.providence.config.util - package net.morimekta.providence.config.util
- NUMBER - net.morimekta.providence.config.parser.ConfigTokenType
- numberToken(char[], int, int, int, int) - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
O
- onConfigChange(M) - Method in interface net.morimekta.providence.config.ConfigListener
-
Called when the config is updated.
- onConfigChange(ParentMessage) - Method in class net.morimekta.providence.config.impl.ReferenceConfigSupplier
- open(Path) - Method in interface net.morimekta.providence.config.util.ContentResolver
- open(Path) - Method in class net.morimekta.providence.config.util.FileContentResolver
- open(Path) - Method in class net.morimekta.providence.config.util.ResourceContentResolver
- override(Map<String, String>) - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Get config with single-field overrides based on the current config.
- override(Map<String, String>, boolean) - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Get config with single-field overrides based on the current config.
- OverrideConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>> - Class in net.morimekta.providence.config.impl
-
A supplier of a providence message config based on a parent config (supplier) and a map of value overrides.
- OverrideConfigSupplier(Clock, ConfigSupplier<Message>, Map<String, String>, boolean) - Constructor for class net.morimekta.providence.config.impl.OverrideConfigSupplier
-
Create a config that wraps a providence message instance.
- OverrideConfigSupplier(ConfigSupplier<Message>, Map<String, String>) - Constructor for class net.morimekta.providence.config.impl.OverrideConfigSupplier
-
Create a config that wraps a providence message instance.
- OverrideConfigSupplier(ConfigSupplier<Message>, Map<String, String>, boolean) - Constructor for class net.morimekta.providence.config.impl.OverrideConfigSupplier
-
Create a config that wraps a providence message instance.
- OverrideConfigSupplier(ConfigSupplier<Message>, Properties) - Constructor for class net.morimekta.providence.config.impl.OverrideConfigSupplier
-
Create a config that wraps a providence message instance.
P
- parseConfig(Path, M) - Method in class net.morimekta.providence.config.parser.ConfigParser
-
Parse a providence config into a message.
- ProvidenceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>> - Class in net.morimekta.providence.config.impl
-
A supplier to get a config (aka message) from a providence config.
- ProvidenceConfigSupplier(Path, ConfigSupplier<Message>, FileWatcher, ConfigParser, Clock) - Constructor for class net.morimekta.providence.config.impl.ProvidenceConfigSupplier
R
- readBinary(char) - Method in class net.morimekta.providence.config.parser.ConfigLexer
- reference(Path, Path, String) - Method in interface net.morimekta.providence.config.util.ContentResolver
- reference(Path, Path, String) - Method in class net.morimekta.providence.config.util.FileContentResolver
- reference(Path, Path, String) - Method in class net.morimekta.providence.config.util.ResourceContentResolver
- reference(PField...) - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Give a reference to a sub-config based on field selection.
- reference(PField...) - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- reference(PField...) - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
- ReferenceConfigSupplier<RefMessage extends net.morimekta.providence.PMessage<RefMessage>,ParentMessage extends net.morimekta.providence.PMessage<ParentMessage>> - Class in net.morimekta.providence.config.impl
-
A supplier to get a config (aka message) from a resource location.
- ReferenceConfigSupplier(ConfigSupplier<ParentMessage>, Clock, PField<?>...) - Constructor for class net.morimekta.providence.config.impl.ReferenceConfigSupplier
-
Create a config that wraps a providence message instance, and fetches a message from within that parent config.
- referenceLocationPath(Path, Path, String) - Method in interface net.morimekta.providence.config.util.ContentResolver
- referenceLocationPath(Path, Path, String) - Method in class net.morimekta.providence.config.util.FileContentResolver
- referenceLocationPath(Path, Path, String) - Method in class net.morimekta.providence.config.util.ResourceContentResolver
- removeListener(ConfigListener<M>) - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Remove a config change listener.
- removeListener(ConfigListener<M>) - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- removeListener(ConfigListener<M>) - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
- ResourceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>> - Class in net.morimekta.providence.config.impl
-
A supplier to get a config (aka message) from a providence config.
- ResourceConfigSupplier(Path, ConfigParser, Clock) - Constructor for class net.morimekta.providence.config.impl.ResourceConfigSupplier
- ResourceContentResolver - Class in net.morimekta.providence.config.util
- ResourceContentResolver() - Constructor for class net.morimekta.providence.config.util.ResourceContentResolver
S
- set(M) - Method in class net.morimekta.providence.config.impl.UpdatingConfigSupplier
-
Set a new config value to the supplier.
- setFile(String) - Method in exception net.morimekta.providence.config.parser.ConfigException
- setFile(String) - Method in exception net.morimekta.providence.config.parser.ConfigWarning
- snapshot() - Method in interface net.morimekta.providence.config.ConfigSupplier
-
Get a snapshot of the current config.
- startString() - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
- STRING - net.morimekta.providence.config.parser.ConfigTokenType
- stringToken(char[], int, int, int, int) - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
- SYMBOL - net.morimekta.providence.config.parser.ConfigTokenType
- symbolToken(char[], int, int, int, int) - Method in class net.morimekta.providence.config.parser.ConfigTokenizer
T
- TestConfigSupplier<M extends net.morimekta.providence.PMessage<M>> - Class in net.morimekta.providence.config.testing
-
Config supplier meant for testing only.
- TestConfigSupplier(String, PMessageDescriptor<M>) - Constructor for class net.morimekta.providence.config.testing.TestConfigSupplier
-
Start with an initial config value.
- TestConfigSupplier(Clock, M) - Constructor for class net.morimekta.providence.config.testing.TestConfigSupplier
-
Start with an initial config value.
- TestConfigSupplier(M) - Constructor for class net.morimekta.providence.config.testing.TestConfigSupplier
-
Start with an initial config value.
- testUpdate(String) - Method in class net.morimekta.providence.config.testing.TestConfigSupplier
-
Update the current config and trigger updates.
- testUpdate(M) - Method in class net.morimekta.providence.config.testing.TestConfigSupplier
-
Update the current config and trigger updates.
- toString() - Method in class net.morimekta.providence.config.impl.FixedConfigSupplier
- toString() - Method in class net.morimekta.providence.config.impl.OverrideConfigSupplier
- toString() - Method in class net.morimekta.providence.config.impl.ProvidenceConfigSupplier
- toString() - Method in class net.morimekta.providence.config.impl.ReferenceConfigSupplier
- toString() - Method in class net.morimekta.providence.config.impl.ResourceConfigSupplier
- toString() - Method in exception net.morimekta.providence.config.parser.ConfigException
- toString() - Method in enum net.morimekta.providence.config.parser.ConfigTokenType
- toString() - Method in class net.morimekta.providence.config.testing.TestConfigSupplier
- toString() - Method in exception net.morimekta.providence.config.util.UncheckedConfigException
U
- UncheckedConfigException - Exception in net.morimekta.providence.config.util
-
Unchecked config exception wrapping the providence config exception.
- UncheckedConfigException(ConfigException) - Constructor for exception net.morimekta.providence.config.util.UncheckedConfigException
- UNDEFINED - Static variable in class net.morimekta.providence.config.parser.ConfigUtil
- UpdatingConfigSupplier<M extends net.morimekta.providence.PMessage<M>> - Class in net.morimekta.providence.config.impl
-
A supplier and instance holder for config objects.
- UpdatingConfigSupplier(Clock) - Constructor for class net.morimekta.providence.config.impl.UpdatingConfigSupplier
-
Initialize supplier with empty config.
V
- valueOf(String) - Static method in enum net.morimekta.providence.config.parser.ConfigTokenType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.morimekta.providence.config.parser.ConfigTokenType
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages