Class EnvJsonPropertySourceLoader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int POSITION
      Position for the system property source loader in the chain.
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getEnvValue()  
      protected java.util.Optional<java.io.InputStream> getEnvValueAsStream()  
      int getOrder()  
      protected java.util.Optional<java.io.InputStream> readInput​(io.micronaut.core.io.ResourceLoader resourceLoader, java.lang.String fileName)  
      • 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 Detail

      • POSITION

        public static final int POSITION
        Position for the system property source loader in the chain.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EnvJsonPropertySourceLoader

        public EnvJsonPropertySourceLoader()
      • EnvJsonPropertySourceLoader

        public EnvJsonPropertySourceLoader​(boolean logEnabled)
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered
        Overrides:
        getOrder in class io.micronaut.context.env.AbstractPropertySourceLoader
      • readInput

        protected java.util.Optional<java.io.InputStream> readInput​(io.micronaut.core.io.ResourceLoader resourceLoader,
                                                                    java.lang.String fileName)
        Overrides:
        readInput in class io.micronaut.context.env.AbstractPropertySourceLoader
      • getEnvValueAsStream

        protected java.util.Optional<java.io.InputStream> getEnvValueAsStream()
        Returns:
        The JSON as input stream stored in the environment variables SPRING_APPLICATION_JSON or MICRONAUT_APPLICATION_JSON.
      • getEnvValue

        protected java.lang.String getEnvValue()
        Returns:
        The JSON stored in the environment variables SPRING_APPLICATION_JSON or MICRONAUT_APPLICATION_JSON.