org.springframework.boot.env

Interface PropertySourceLoader

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      String[] getFileExtensions()
      Returns the file extensions that the loader supports (excluding the '.').
      org.springframework.core.env.PropertySource<?> load(String name, org.springframework.core.io.Resource resource, String profile)
      Load the resource into a property source.
    • Method Detail

      • getFileExtensions

        String[] getFileExtensions()
        Returns the file extensions that the loader supports (excluding the '.').
        Returns:
        the file extensions
      • load

        org.springframework.core.env.PropertySource<?> load(String name,
                                                            org.springframework.core.io.Resource resource,
                                                            String profile)
                                                     throws IOException
        Load the resource into a property source.
        Parameters:
        name - the name of the property source
        resource - the resource to load
        profile - the name of the profile to load or null. The profile can be used to load multi-document files (such as YAML). Simple property formats should null when asked to load a profile.
        Returns:
        a property source or null
        Throws:
        IOException - if the source cannot be loaded

Copyright © 2017 Pivotal Software, Inc.. All rights reserved.