Class YamlPropertySourceLoader

  • All Implemented Interfaces:
    org.springframework.boot.env.PropertySourceLoader

    @Order(-2147483648)
    public class YamlPropertySourceLoader
    extends org.springframework.beans.factory.config.YamlProcessor
    implements org.springframework.boot.env.PropertySourceLoader
    Replacement for Spring Boot's YAML loader that uses Grails' NavigableMap.
    Since:
    3.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.beans.factory.config.YamlProcessor

        org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher, org.springframework.beans.factory.config.YamlProcessor.MatchCallback, org.springframework.beans.factory.config.YamlProcessor.MatchStatus, org.springframework.beans.factory.config.YamlProcessor.ResolutionMethod
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getFileExtensions()  
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> load()  
      java.util.List<org.springframework.core.env.PropertySource<?>> load​(java.lang.String name, org.springframework.core.io.Resource resource)  
      java.util.List<org.springframework.core.env.PropertySource<?>> load​(java.lang.String name, org.springframework.core.io.Resource resource, java.util.List<java.lang.String> filteredKeys)  
      • Methods inherited from class org.springframework.beans.factory.config.YamlProcessor

        createYaml, getFlattenedMap, process, setDocumentMatchers, setMatchDefault, setResolutionMethod, setResources, setSupportedTypes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YamlPropertySourceLoader

        public YamlPropertySourceLoader()
    • Method Detail

      • getFileExtensions

        public java.lang.String[] getFileExtensions()
        Specified by:
        getFileExtensions in interface org.springframework.boot.env.PropertySourceLoader
      • load

        public java.util.List<org.springframework.core.env.PropertySource<?>> load​(java.lang.String name,
                                                                                   org.springframework.core.io.Resource resource)
                                                                            throws java.io.IOException
        Specified by:
        load in interface org.springframework.boot.env.PropertySourceLoader
        Throws:
        java.io.IOException
      • load

        public java.util.List<org.springframework.core.env.PropertySource<?>> load​(java.lang.String name,
                                                                                   org.springframework.core.io.Resource resource,
                                                                                   java.util.List<java.lang.String> filteredKeys)
                                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> load()