Class VersionChecker

  • All Implemented Interfaces:
    SubSystem

    @Singleton
    public class VersionChecker
    extends java.lang.Object
    implements SubSystem
    System for checking if new Version is available when the System initializes.
    • Constructor Detail

      • VersionChecker

        @Inject
        public VersionChecker​(@Named("currentVersion")
                              java.lang.String currentVersion,
                              Locale locale,
                              PlanConfig config,
                              net.playeranalytics.plugin.server.PluginLogger logger,
                              net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory,
                              ErrorLogger errorLogger)
    • Method Detail

      • isNewVersionAvailable

        public boolean isNewVersionAvailable()
      • enable

        public void enable()
        Description copied from interface: SubSystem
        Performs enable actions for the subsystem.
        Specified by:
        enable in interface SubSystem
      • disable

        public void disable()
        Description copied from interface: SubSystem
        Performs disable actions for the subsystem
        Specified by:
        disable in interface SubSystem
      • getNewVersionAvailable

        public java.util.Optional<VersionInfo> getNewVersionAvailable()
      • getUpdateButton

        public java.util.Optional<java.lang.String> getUpdateButton()
      • getCurrentVersionButton

        public java.lang.String getCurrentVersionButton()
      • getUpdateModal

        public java.lang.String getUpdateModal()
      • getCurrentVersion

        public java.lang.String getCurrentVersion()