Uses of Class
net.morimekta.providence.config.parser.ConfigException
-
-
Uses of ConfigException in net.morimekta.providence.config
Methods in net.morimekta.providence.config that throw ConfigException Modifier and Type Method Description <M extends net.morimekta.providence.PMessage<M>>
MConfigLoader. getConfig(java.nio.file.Path configFile)Get config for the given file.<M extends net.morimekta.providence.PMessage<M>>
MConfigLoader. getConfig(java.nio.file.Path configFile, M parent)Get config for the given with parent.<M extends net.morimekta.providence.PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadFile(java.nio.file.Path configFile)Load a config file without parent config like on config file includes.<M extends net.morimekta.providence.PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadFile(java.nio.file.Path configFile, ConfigSupplier<M> parentConfig)Load a config file overlaying another config.<M extends net.morimekta.providence.PMessage<M>>
ConfigSupplier<M>ConfigLoader. loadResource(java.lang.String resourcePath)Load a config resource without parent config like on config file includes.default ConfigSupplier<M>ConfigSupplier. override(java.util.Map<java.lang.String,java.lang.String> overrides)Get config with single-field overrides based on the current config.default ConfigSupplier<M>ConfigSupplier. override(java.util.Map<java.lang.String,java.lang.String> overrides, boolean strict)Get config with single-field overrides based on the current config.<RM extends net.morimekta.providence.PMessage<RM>>
ConfigSupplier<RM>ConfigSupplier. reference(net.morimekta.providence.descriptor.PField... fields)Give a reference to a sub-config based on field selection. -
Uses of ConfigException in net.morimekta.providence.config.impl
Methods in net.morimekta.providence.config.impl that throw ConfigException Modifier and Type Method Description <RM extends net.morimekta.providence.PMessage<RM>>
ConfigSupplier<RM>FixedConfigSupplier. reference(net.morimekta.providence.descriptor.PField... fields)<RM extends net.morimekta.providence.PMessage<RM>>
ConfigSupplier<RM>UpdatingConfigSupplier. reference(net.morimekta.providence.descriptor.PField... fields)Constructors in net.morimekta.providence.config.impl that throw ConfigException Constructor Description OverrideConfigSupplier(java.time.Clock clock, ConfigSupplier<Message> parent, java.util.Map<java.lang.String,java.lang.String> overrides, boolean strict)Create a config that wraps a providence message instance.OverrideConfigSupplier(ConfigSupplier<Message> parent, java.util.Map<java.lang.String,java.lang.String> overrides)Create a config that wraps a providence message instance.OverrideConfigSupplier(ConfigSupplier<Message> parent, java.util.Map<java.lang.String,java.lang.String> overrides, boolean strict)Create a config that wraps a providence message instance.OverrideConfigSupplier(ConfigSupplier<Message> parent, java.util.Properties overrides)Create a config that wraps a providence message instance.ProvidenceConfigSupplier(java.nio.file.Path configFile, ConfigSupplier<Message> parentSupplier, net.morimekta.util.FileWatcher fileWatcher, ConfigParser configParser, java.time.Clock clock)ReferenceConfigSupplier(ConfigSupplier<ParentMessage> parent, java.time.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(java.nio.file.Path resourcePath, ConfigParser configParser, java.time.Clock clock) -
Uses of ConfigException in net.morimekta.providence.config.parser
Subclasses of ConfigException in net.morimekta.providence.config.parser Modifier and Type Class Description classConfigWarningProvidence config exceptions are extensions of the serializer exception (as parsing config can be seen as parsing or de-serializing any serialized message).Methods in net.morimekta.providence.config.parser that return ConfigException Modifier and Type Method Description ConfigExceptionConfigException. initCause(java.lang.Throwable cause)ConfigExceptionConfigException. setFile(java.lang.String file)Methods in net.morimekta.providence.config.parser that throw ConfigException Modifier and Type Method Description static java.nio.file.PathConfigUtil. canonicalFileLocation(java.nio.file.Path file)<M extends net.morimekta.providence.PMessage<M>>
net.morimekta.util.Pair<M,java.util.Set<java.lang.String>>ConfigParser. parseConfig(java.nio.file.Path configFile, M parent)Parse a providence config into a message. -
Uses of ConfigException in net.morimekta.providence.config.testing
Methods in net.morimekta.providence.config.testing that throw ConfigException Modifier and Type Method Description voidTestConfigSupplier. testUpdate(java.lang.String resourceName)Update the current config and trigger updates.Constructors in net.morimekta.providence.config.testing that throw ConfigException Constructor Description TestConfigSupplier(java.lang.String initialResource, net.morimekta.providence.descriptor.PMessageDescriptor<M> descriptor)Start with an initial config value. -
Uses of ConfigException in net.morimekta.providence.config.util
Methods in net.morimekta.providence.config.util that return ConfigException Modifier and Type Method Description ConfigExceptionUncheckedConfigException. getCause()Constructors in net.morimekta.providence.config.util with parameters of type ConfigException Constructor Description UncheckedConfigException(ConfigException cause)
-