Interface ConfigSource

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ConfigSource
    Allows providing custom sources of configuration data.
    See Also:
    ConfigDataBuilder.add(ConfigSource)
    • Method Detail

      • loadConfigData

        ObjectNode loadConfigData​(ObjectMapper objectMapper,
                                  FileSystemBinding fileSystemBinding)
                           throws Exception
        Loads the configuration data from this data source.
        Parameters:
        fileSystemBinding - the file system view the config source must use to find files
        objectMapper - the Jackson ObjectMapper to use to build objects
        Returns:
        the root node of the configuration data loaded
        Throws:
        Exception - any