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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    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.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     
    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
    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.
     
    readInput(io.micronaut.core.io.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 POSITION
      Deprecated, 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:
      getOrder in interface io.micronaut.core.order.Ordered
      Overrides:
      getOrder in class EnvJsonPropertySourceLoader
    • getExtensions

      public Set<String> getExtensions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getExtensions in interface io.micronaut.context.env.PropertySourceReader
      Overrides:
      getExtensions in class JsonPropertySourceLoader
    • getEnvValue

      protected String getEnvValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getEnvValue in class EnvJsonPropertySourceLoader
      Returns:
      The JSON stored in the environment variables SPRING_APPLICATION_JSON or MICRONAUT_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:
      readInput in class EnvJsonPropertySourceLoader
    • processInput

      protected void processInput(String name, InputStream input, Map<String,Object> finalMap) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      processInput in class JsonPropertySourceLoader
      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:
      createPropertySource in class io.micronaut.context.env.AbstractPropertySourceLoader