| Package | Description |
|---|---|
| org.spincast.plugins.config |
| Modifier and Type | Method and Description |
|---|---|
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.classpathFile(String classpathYamlFilePath)
A .yaml config file to search on the classpath.
|
static ConfigFinder.ConfigFinderBuilder |
ConfigFinder.configure() |
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.environmentVariablesPrefixes(List<String> prefixes)
The allowed prefixes an environment variable can have
to be used as a configuration.
|
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.environmentVariablesStripPrefix(boolean strip)
Should the prefix of an environment variable be stripped?
For example, if
environmentVariablesPrefixes indicate
that "app." is an environment variable prefix, then "app.admin.email"
would result in a "admin.email" key. |
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.externalFile(String externalYamlFilePath)
A .yaml config file to search to be found outside the application.
|
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.externalFile(String externalYamlFilePath,
boolean overrideEnvironmentVariables)
A .yaml config file to search to be found outside the application.
|
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.systemPropertiesPrefixes(List<String> prefixes)
The allowed prefixes a system property can have
to be used as a configuration.
|
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.systemPropertiesStripPrefix(boolean strip)
Should the prefix of an system property be stripped?
For example, if
systemPropertiesPrefixes indicate
that "app." is an system property prefix, then "app.admin.email"
would result in a "admin.email" key. |
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.throwExceptionIfSpecifiedClasspathConfigFileIsNotFound(boolean enable)
Should an exception be thrown if a classpath config file is specified
(is not
null) but is not found. |
ConfigFinder.ConfigFinderBuilder |
ConfigFinder.ConfigFinderBuilder.throwExceptionIfSpecifiedExternalConfigFileIsNotFound(boolean enable)
Should an exception be thrown if an external config file is specified
(is not
null) but is not found. |
Copyright © 2019. All rights reserved.