@Internal public class CloudFoundryVcapApplicationPropertySourceLoader extends EnvJsonPropertySourceLoader
A PropertySourceLoader that reads from the environment variable VCAP_APPLICATION
which is used by CloudFoundry.
| Modifier and Type | Field and Description |
|---|---|
static int |
POSITION
Position for the system property source loader in the chain.
|
FILE_EXTENSION| Constructor and Description |
|---|
CloudFoundryVcapApplicationPropertySourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected io.micronaut.context.env.MapPropertySource |
createPropertySource(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> map,
int order) |
protected java.lang.String |
getEnvValue() |
java.util.Set<java.lang.String> |
getExtensions() |
int |
getOrder() |
protected void |
processInput(java.lang.String name,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.Object> finalMap) |
protected java.util.Optional<java.io.InputStream> |
readInput(io.micronaut.core.io.ResourceLoader resourceLoader,
java.lang.String fileName) |
getEnvValueAsStreamreadJsonAsMapload, loadEnv, processMap, readpublic static final int POSITION
public CloudFoundryVcapApplicationPropertySourceLoader()
public int getOrder()
getOrder in interface io.micronaut.core.order.OrderedgetOrder in class EnvJsonPropertySourceLoaderpublic java.util.Set<java.lang.String> getExtensions()
getExtensions in interface io.micronaut.context.env.PropertySourceReadergetExtensions in class JsonPropertySourceLoaderprotected java.lang.String getEnvValue()
getEnvValue in class EnvJsonPropertySourceLoaderprotected java.util.Optional<java.io.InputStream> readInput(io.micronaut.core.io.ResourceLoader resourceLoader,
java.lang.String fileName)
readInput in class EnvJsonPropertySourceLoaderprotected void processInput(java.lang.String name,
java.io.InputStream input,
java.util.Map<java.lang.String,java.lang.Object> finalMap)
throws java.io.IOException
processInput in class JsonPropertySourceLoaderjava.io.IOExceptionprotected io.micronaut.context.env.MapPropertySource createPropertySource(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> map,
int order)
createPropertySource in class io.micronaut.context.env.AbstractPropertySourceLoader