Class YamlPropertySourceLoader

java.lang.Object
io.micronaut.context.env.AbstractPropertySourceLoader
io.micronaut.context.env.yaml.YamlPropertySourceLoader
All Implemented Interfaces:
PropertySourceLoader, PropertySourceLocator, PropertySourceReader, Ordered, Toggleable

public class YamlPropertySourceLoader extends AbstractPropertySourceLoader
Loads properties from a YML file.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • YamlPropertySourceLoader

      public YamlPropertySourceLoader()
    • YamlPropertySourceLoader

      public YamlPropertySourceLoader(boolean logEnabled)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns:
      Whether the component is enabled
    • getExtensions

      public Set<String> getExtensions()
      Returns:
      The extensions this reader supports.
    • processInput

      protected void processInput(String name, InputStream input, Map<String,Object> finalMap)
      Specified by:
      processInput in class AbstractPropertySourceLoader
      Parameters:
      name - The name
      input - The input stream
      finalMap - The map with all the properties processed