Uses of Interface
net.morimekta.providence.config.ConfigSupplier
-
Packages that use ConfigSupplier Package Description net.morimekta.providence.config net.morimekta.providence.config.impl net.morimekta.providence.config.testing -
-
Uses of ConfigSupplier in net.morimekta.providence.config
Methods in net.morimekta.providence.config that return ConfigSupplier Modifier and Type Method Description <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.default ConfigSupplier<M>ConfigSupplier. snapshot()Get a snapshot of the current config.Methods in net.morimekta.providence.config with parameters of type ConfigSupplier Modifier and Type Method Description <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. -
Uses of ConfigSupplier in net.morimekta.providence.config.impl
Classes in net.morimekta.providence.config.impl that implement ConfigSupplier Modifier and Type Class Description classFixedConfigSupplier<M extends net.morimekta.providence.PMessage<M>>A supplier and instance holder for an immutable config instance.classOverrideConfigSupplier<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.classProvidenceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>A supplier to get a config (aka message) from a providence config.classReferenceConfigSupplier<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.classResourceConfigSupplier<Message extends net.morimekta.providence.PMessage<Message>>A supplier to get a config (aka message) from a providence config.classUpdatingConfigSupplier<M extends net.morimekta.providence.PMessage<M>>A supplier and instance holder for config objects.Methods in net.morimekta.providence.config.impl that return ConfigSupplier 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 with parameters of type ConfigSupplier Constructor 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(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. -
Uses of ConfigSupplier in net.morimekta.providence.config.testing
Classes in net.morimekta.providence.config.testing that implement ConfigSupplier Modifier and Type Class Description classTestConfigSupplier<M extends net.morimekta.providence.PMessage<M>>Config supplier meant for testing only.
-