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 String |
getEnvValue() |
int |
getOrder() |
protected Optional<InputStream> |
readInput(ResourceLoader resourceLoader,
String fileName) |
getExtensions, processInput
load, 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 Optional<InputStream> readInput(ResourceLoader resourceLoader, String fileName)
readInput
in class AbstractPropertySourceLoader
resourceLoader
- The resource loaderfileName
- The file nameOptional
protected String getEnvValue()