Package com.djrapitops.plan.version
Class VersionChecker
java.lang.Object
com.djrapitops.plan.version.VersionChecker
- All Implemented Interfaces:
SubSystem
- Direct Known Subclasses:
FabricVersionChecker
,SpongeVersionChecker
System for checking if new Version is available when the System initializes.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PlanConfig
protected final VersionNumber
protected final ErrorLogger
protected final Locale
protected final net.playeranalytics.plugin.server.PluginLogger
protected VersionInfo
protected final net.playeranalytics.plugin.scheduling.RunnableFactory
-
Constructor Summary
ConstructorDescriptionVersionChecker
(String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.boolean
protected Optional<List<VersionInfo>>
-
Field Details
-
currentVersion
-
locale
-
config
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger -
runnableFactory
protected final net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory -
errorLogger
-
newVersionAvailable
-
-
Constructor Details
-
VersionChecker
@Inject public VersionChecker(@Named("currentVersion") String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger)
-
-
Method Details
-
isNewVersionAvailable
public boolean isNewVersionAvailable() -
loadVersionInfo
-
enable
public void enable()Description copied from interface:SubSystem
Performs enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
getNewVersionAvailable
-
getCurrentVersion
-