public interface ConfigFrom extends Supplier<Config>
@Nonnull static ConfigFrom firstOf()
ConfigFrom custom(Function<String,String> keyValueLookup)
ConfigFrom value(String key, String value)
ConfigFrom systemProperties()
ConfigFrom env()
ConfigFrom properties(Properties properties)
ConfigFrom config(Config config)
ConfigFrom config(Supplier<Config> config)
ConfigFrom defaultPropertyFiles()
defaultPropertyFiles("properties", "conf/app.properties", "local.properties", "sample.properties")
ConfigFrom defaultPropertyFiles(String systemPropertyKey, String... filenames)
defaultPropertyFiles(systemPropertyKey, Charset.defaultCharset().newDecoder(), filenames)
ConfigFrom defaultPropertyFiles(String systemPropertyKey, CharsetDecoder decoder, String... filenames)
propertyFile(Charset.defaultCharset().newDecoder(),
System.getProperty(systemPropertyKey, String.join(File.pathSeparator, filenames))
.split(File.pathSeparator));
ConfigFrom propertyFile(String... filenames)
ConfigFrom propertyFile(CharsetDecoder decoder, String... filenames)
ConfigFrom propertyFile(File... files)
ConfigFrom propertyFile(CharsetDecoder decoder, File... files)
ConfigFrom rename(String key, String newKey)
ConfigFrom includeKeys(String... keys)
ConfigFrom includePrefix(String... prefixes)
ConfigFrom includeRegex(String regex)
ConfigFrom excludeKeys(String... keys)
ConfigFrom excludePrefix(String... prefixes)
ConfigFrom excludeRegex(String regex)
ConfigFrom removePrefix(String... prefixes)
ConfigFrom addPrefix(String prefix)
ConfigFrom substitutions(Config config)
Copyright © 2020. All rights reserved.