Interface PlatformCatalog

    • Method Detail

      • getRecommendedPlatform

        default Platform getRecommendedPlatform()
      • persist

        default void persist​(Path p)
                      throws IOException
        Persist this configuration to the specified file.
        Parameters:
        p - Target path
        Throws:
        IOException - if the specified file can not be written to.
      • fromFile

        static PlatformCatalog fromFile​(Path path)
                                 throws IOException
        Read config from the specified file
        Parameters:
        path - File to read from (yaml or json)
        Returns:
        read-only PlatformCatalog object
        Throws:
        IOException
      • mutableFromFile

        static PlatformCatalog.Mutable mutableFromFile​(Path path)
                                                throws IOException
        Read config from the specified file
        Parameters:
        path - File to read from (yaml or json)
        Returns:
        read-only PlatformCatalog object (empty/default for an empty file)
        Throws:
        IOException