public class EnvJsonPropertySourceLoader extends JsonPropertySourceLoader
Reads properties from JSON stored in the environment variables SPRING_APPLICATION_JSON or MICRONAUT_APPLICATION_JSON.
Modifier and Type | Field and Description |
---|---|
static int |
POSITION
Position for the system property source loader in the chain.
|
FILE_EXTENSION
DEFAULT_POSITION
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
EnvJsonPropertySourceLoader() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getEnvValue() |
protected java.util.Optional<java.io.InputStream> |
getEnvValueAsStream() |
int |
getOrder() |
protected java.util.Optional<java.io.InputStream> |
readInput(ResourceLoader resourceLoader,
java.lang.String fileName) |
getExtensions, processInput, readJsonAsMap
createPropertySource, load, loadEnv, processMap, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load
isEnabled
read
public static final int POSITION
public int getOrder()
getOrder
in interface Ordered
getOrder
in class AbstractPropertySourceLoader
protected java.util.Optional<java.io.InputStream> readInput(ResourceLoader resourceLoader, java.lang.String fileName)
readInput
in class AbstractPropertySourceLoader
resourceLoader
- The resource loaderfileName
- The file nameOptional
protected java.util.Optional<java.io.InputStream> getEnvValueAsStream()
protected java.lang.String getEnvValue()