Package com.djrapitops.plan
Class PlanSystem
java.lang.Object
com.djrapitops.plan.PlanSystem
- All Implemented Interfaces:
SubSystem
PlanSystem contains everything Plan needs to run.
This is an abstraction layer on top of Plugin instances so that tests can be run with less mocks.
-
Constructor Summary
ConstructorsConstructorDescriptionPlanSystem(PlanFiles files, ConfigSystem configSystem, VersionChecker versionChecker, LocaleSystem localeSystem, DBSystem databaseSystem, CacheSystem cacheSystem, ListenerSystem listenerSystem, TaskSystem taskSystem, ServerInfo serverInfo, WebServerSystem webServerSystem, Processing processing, ImportSystem importSystem, ExportSystem exportSystem, DeliveryUtilities deliveryUtilities, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, dev.vankka.dependencydownload.ApplicationDependencyManager applicationDependencyManager, ApiServices apiServices, PlanAPI.PlanAPIHolder apiHolder, GatheringUtilities gatheringUtilities) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Performs disable actions for the subsystemvoidenable()Performs enable actions for the subsystem.voidEnables only the systems that are required forPlanCommand.voidEnables the rest of the systems that are not enabled inenableForCommands().static longboolean
-
Constructor Details
-
PlanSystem
@Inject public PlanSystem(PlanFiles files, ConfigSystem configSystem, VersionChecker versionChecker, LocaleSystem localeSystem, DBSystem databaseSystem, CacheSystem cacheSystem, ListenerSystem listenerSystem, TaskSystem taskSystem, ServerInfo serverInfo, WebServerSystem webServerSystem, Processing processing, ImportSystem importSystem, ExportSystem exportSystem, DeliveryUtilities deliveryUtilities, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, dev.vankka.dependencydownload.ApplicationDependencyManager applicationDependencyManager, ApiServices apiServices, PlanAPI.PlanAPIHolder apiHolder, GatheringUtilities gatheringUtilities)
-
-
Method Details
-
enableForCommands
public void enableForCommands()Enables only the systems that are required forPlanCommand.- See Also:
-
enableOtherThanCommands
public void enableOtherThanCommands()Enables the rest of the systems that are not enabled inenableForCommands(). -
enable
public void enable()Description copied from interface:SubSystemPerforms enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystemPerforms disable actions for the subsystem -
getVersionChecker
-
getConfigSystem
-
getPlanFiles
-
getDatabaseSystem
-
getListenerSystem
-
getTaskSystem
-
getWebServerSystem
-
getImportSystem
-
getExportSystem
-
getServerInfo
-
getCacheSystem
-
getProcessing
-
getLocaleSystem
-
getDeliveryUtilities
-
getGatheringUtilities
-
isEnabled
public boolean isEnabled() -
getApiServices
-
getServerEnableTime
public static long getServerEnableTime()
-