Package io.micronaut.jackson.core.env
Class CloudFoundryVcapServicesPropertySourceLoader
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.CloudFoundryVcapServicesPropertySourceLoader
- All Implemented Interfaces:
PropertySourceLoader
,PropertySourceLocator
,PropertySourceReader
,Ordered
,Toggleable
@Deprecated(forRemoval=true)
@Internal
public class CloudFoundryVcapServicesPropertySourceLoader
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_SERVICES
which is used by CloudFoundry.
- Since:
- 2.0
- Author:
- Fabian Nonnenmacher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, 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_EXTENSION
Fields inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
DEFAULT_POSITION, log
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.CloudFoundryVcapServicesPropertySourceLoader
(boolean logEnabled) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected MapPropertySource
createPropertySource
(String name, Map<String, Object> map, int order, PropertySource.Origin origin) Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, 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.int
getOrder()
Deprecated, for removal: This API element is subject to removal in a future version.protected void
processInput
(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>
readInput
(ResourceLoader resourceLoader, String fileName) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.micronaut.jackson.core.env.EnvJsonPropertySourceLoader
getEnvValueAsStream
Methods inherited from class io.micronaut.jackson.core.env.JsonPropertySourceLoader
readJsonAsMap
Methods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader
createPropertySource, isLogEnabled, load, loadEnv, processMap, read, setLogEnabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.env.PropertySourceLoader
load
Methods inherited from interface io.micronaut.context.env.PropertySourceReader
read
Methods 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
-
CloudFoundryVcapServicesPropertySourceLoader
public CloudFoundryVcapServicesPropertySourceLoader()Deprecated, for removal: This API element is subject to removal in a future version. -
CloudFoundryVcapServicesPropertySourceLoader
public CloudFoundryVcapServicesPropertySourceLoader(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:
getOrder
in interfaceOrdered
- Overrides:
getOrder
in classEnvJsonPropertySourceLoader
- Returns:
- The order of the object. Defaults to zero (no order).
-
getEnvValue
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getEnvValue
in classEnvJsonPropertySourceLoader
- Returns:
- The JSON stored in the environment variables
SPRING_APPLICATION_JSON
orMICRONAUT_APPLICATION_JSON
.
-
getExtensions
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getExtensions
in interfacePropertySourceReader
- Overrides:
getExtensions
in classJsonPropertySourceLoader
- Returns:
- The extensions this reader supports.
-
readInput
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
readInput
in classEnvJsonPropertySourceLoader
- Parameters:
resourceLoader
- The resource loaderfileName
- The file name- Returns:
- An input stream wrapped inside an
Optional
-
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:
processInput
in classJsonPropertySourceLoader
- Parameters:
name
- The nameinput
- The input streamfinalMap
- The map with all the properties processed- Throws:
IOException
- If the input stream doesn't exist
-
createPropertySource
protected MapPropertySource createPropertySource(String name, Map<String, Object> map, int order, PropertySource.Origin origin) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
createPropertySource
in classAbstractPropertySourceLoader
- Parameters:
name
- The name of the property sourcemap
- The maporder
- The order of the property source- Returns:
- property source
-