Package io.micronaut.jackson.core.env
Class CloudFoundryVcapApplicationPropertySourceLoader
java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.jackson.core.env.JsonPropertySourceLoader
io.micronaut.jackson.core.env.EnvJsonPropertySourceLoader
io.micronaut.jackson.core.env.CloudFoundryVcapApplicationPropertySourceLoader
- All Implemented Interfaces:
io.micronaut.context.env.PropertySourceLoader,io.micronaut.context.env.PropertySourceLocator,io.micronaut.context.env.PropertySourceReader,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
@Deprecated(forRemoval=true)
@Internal
public class CloudFoundryVcapApplicationPropertySourceLoader
extends EnvJsonPropertySourceLoader
Deprecated, for removal: This API element is subject to removal in a future version.
CloudFoundry support should be added manually
A PropertySourceLoader that reads from the environment variable VCAP_APPLICATION
which is used by CloudFoundry.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.Position for the system property source loader in the chain.Fields inherited from class io.micronaut.jackson.core.env.JsonPropertySourceLoader
FILE_EXTENSIONFields inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
DEFAULT_POSITION, logFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.CloudFoundryVcapApplicationPropertySourceLoader(boolean logEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micronaut.context.env.MapPropertySourcecreatePropertySource(String name, Map<String, Object> map, int order, io.micronaut.context.env.PropertySource.Origin origin) Deprecated, for removal: This API element is subject to removal in a future version.protected StringDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intgetOrder()Deprecated, for removal: This API element is subject to removal in a future version.protected voidprocessInput(String name, InputStream input, Map<String, Object> finalMap) Deprecated, for removal: This API element is subject to removal in a future version.protected Optional<InputStream>Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.micronaut.jackson.core.env.EnvJsonPropertySourceLoader
getEnvValueAsStreamMethods inherited from class io.micronaut.jackson.core.env.JsonPropertySourceLoader
readJsonAsMapMethods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
createPropertySource, isLogEnabled, load, loadEnv, processMap, read, setLogEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.context.env.PropertySourceLoader
loadMethods inherited from interface io.micronaut.context.env.PropertySourceReader
readMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Field Details
-
POSITION
public static final int POSITIONDeprecated, for removal: This API element is subject to removal in a future version.Position for the system property source loader in the chain.- See Also:
-
-
Constructor Details
-
CloudFoundryVcapApplicationPropertySourceLoader
public CloudFoundryVcapApplicationPropertySourceLoader()Deprecated, for removal: This API element is subject to removal in a future version. -
CloudFoundryVcapApplicationPropertySourceLoader
public CloudFoundryVcapApplicationPropertySourceLoader(boolean logEnabled) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getOrder
public int getOrder()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered- Overrides:
getOrderin classEnvJsonPropertySourceLoader
-
getExtensions
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getExtensionsin interfaceio.micronaut.context.env.PropertySourceReader- Overrides:
getExtensionsin classJsonPropertySourceLoader
-
getEnvValue
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getEnvValuein classEnvJsonPropertySourceLoader- Returns:
- The JSON stored in the environment variables
SPRING_APPLICATION_JSONorMICRONAUT_APPLICATION_JSON.
-
readInput
protected Optional<InputStream> readInput(io.micronaut.core.io.ResourceLoader resourceLoader, String fileName) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
readInputin classEnvJsonPropertySourceLoader
-
processInput
protected void processInput(String name, InputStream input, Map<String, Object> finalMap) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
processInputin classJsonPropertySourceLoader- Throws:
IOException
-
createPropertySource
protected io.micronaut.context.env.MapPropertySource createPropertySource(String name, Map<String, Object> map, int order, io.micronaut.context.env.PropertySource.Origin origin) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createPropertySourcein classio.micronaut.context.env.AbstractPropertySourceLoader
-