Interface MetadataInputResolver


  • public interface MetadataInputResolver
    Interface representing methods that a new instance must implement if it wants to resolve spring-configuration-metadata.json files from different sources.
    Since:
    0.1.0
    Author:
    nandorholozsnyak
    • Method Detail

      • resolveInputStream

        InputStream resolveInputStream​(Project project,
                                       File input)
        Resolves the metadata file from the given parameters.
        Parameters:
        project - project instance.
        input - input that could be a file, directory or a jar/zip file.
        Returns:
        resolved input stream if the input contains the desired element, otherwise it returns null.
      • supports

        boolean supports​(File input)
        Checks if the input resolver supports this input or not.
        Parameters:
        input - input object.
        Returns:
        true if the resolver supports this input, otherwise false.