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:
- PropertySourceLoader,- PropertySourceLocator,- PropertySourceReader,- Ordered,- 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
- Author:
- Fabian Nonnenmacher
- 
Field SummaryFieldsModifier 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.JsonPropertySourceLoaderFILE_EXTENSIONFields inherited from class io.micronaut.context.env.AbstractPropertySourceLoaderDEFAULT_POSITION, logFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, 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 SummaryModifier and TypeMethodDescriptionprotected MapPropertySourcecreatePropertySource(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 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>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.EnvJsonPropertySourceLoadergetEnvValueAsStreamMethods inherited from class io.micronaut.jackson.core.env.JsonPropertySourceLoaderreadJsonAsMapMethods inherited from class io.micronaut.context.env.AbstractPropertySourceLoadercreatePropertySource, isLogEnabled, load, loadEnv, processMap, read, setLogEnabledMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.context.env.PropertySourceLoaderloadMethods inherited from interface io.micronaut.context.env.PropertySourceReaderreadMethods inherited from interface io.micronaut.core.util.ToggleableisEnabled
- 
Field Details- 
POSITIONpublic 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- 
CloudFoundryVcapApplicationPropertySourceLoaderpublic CloudFoundryVcapApplicationPropertySourceLoader()Deprecated, for removal: This API element is subject to removal in a future version.
- 
CloudFoundryVcapApplicationPropertySourceLoaderpublic CloudFoundryVcapApplicationPropertySourceLoader(boolean logEnabled) Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
getOrderpublic int getOrder()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getOrderin interface- Ordered
- Overrides:
- getOrderin class- EnvJsonPropertySourceLoader
- Returns:
- The order of the object. Defaults to zero (no order).
 
- 
getExtensionsDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getExtensionsin interface- PropertySourceReader
- Overrides:
- getExtensionsin class- JsonPropertySourceLoader
- Returns:
- The extensions this reader supports.
 
- 
getEnvValueDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- getEnvValuein class- EnvJsonPropertySourceLoader
- Returns:
- The JSON stored in the environment variables
 SPRING_APPLICATION_JSONorMICRONAUT_APPLICATION_JSON.
 
- 
readInputDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- readInputin class- EnvJsonPropertySourceLoader
- Parameters:
- resourceLoader- The resource loader
- fileName- The file name
- Returns:
- An input stream wrapped inside an Optional
 
- 
processInputprotected 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 class- JsonPropertySourceLoader
- Parameters:
- name- The name
- input- The input stream
- finalMap- The map with all the properties processed
- Throws:
- IOException- If the input stream doesn't exist
 
- 
createPropertySourceprotected 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:
- createPropertySourcein class- AbstractPropertySourceLoader
- Parameters:
- name- The name of the property source
- map- The map
- order- The order of the property source
- Returns:
- property source
 
 
-