Class UpdateConfig

  • All Implemented Interfaces:

    
    public final class UpdateConfig
    
                        

    Settings-group for update- and release-tracking: the URL from which the fallback mod-lists are refreshed, the pre-release version-check flag, the old-version used for migrations, and the fallback-list update itself. Saving to disk is delegated to the injected saveToDisk-callback, keeping persistence-orchestration with ApiProperties. Extracted from ApiProperties (refactor Phase 1b); ApiProperties remains the facade through which consumers access these values.

    • Method Detail

      • getUpdateUrl

         final URL getUpdateUrl()

        The URL from which a .properties-file is read during updating of the fallback clientside-mods list.

      • setUpdateUrl

         final Unit setUpdateUrl(URL value)

        The URL from which a .properties-file is read during updating of the fallback clientside-mods list.

      • updateFallback

         final Boolean updateFallback()

        Updates the fallback clientside-mod-list and whitelist from the configured updateUrl, replacing the stored lists when the remote ones differ, and saving to disk via the injected callback when anything changed.

      • setOldVersion

         final Unit setOldVersion(String version)

        Stores the old ServerPackCreator-version used to perform necessary migrations between the old and the current version, and saves to disk.

      • oldVersion

         final String oldVersion()

        The old ServerPackCreator-version used before updating; empty on a first run.