Class JsonPropertySourceLoader

java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.jackson.env.JsonPropertySourceLoader
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

public class JsonPropertySourceLoader extends io.micronaut.context.env.AbstractPropertySourceLoader

A PropertySourceLoader that reads application.json files if they exist.

Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    File extension for property source loader.

    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
     
    JsonPropertySourceLoader(boolean logEnabled)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected void
    processInput(String name, InputStream input, Map<String,Object> finalMap)
     
    protected Map<String,Object>
     

    Methods inherited from class io.micronaut.context.env.AbstractPropertySourceLoader

    createPropertySource, getOrder, isLogEnabled, load, loadEnv, processMap, read, readInput, 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

    • FILE_EXTENSION

      public static final String FILE_EXTENSION
      File extension for property source loader.
      See Also:
  • Constructor Details

    • JsonPropertySourceLoader

      public JsonPropertySourceLoader()
    • JsonPropertySourceLoader

      public JsonPropertySourceLoader(boolean logEnabled)
  • Method Details