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
ConstructorDescriptionPlanSystem
(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, ComponentSvc componentService, ResolverSvc resolverService, ResourceSvc resourceService, ExtensionSvc extensionService, QuerySvc queryService, ListenerSvc listenerService, SettingsSvc settingsService, SchedulerSvc schedulerService, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, PlanAPI.PlanAPIHolder apiHolder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.void
Enables only the systems that are required forPlanCommand
.void
Enables the rest of the systems that are not enabled inenableForCommands()
.Deprecated.static long
boolean
-
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, ComponentSvc componentService, ResolverSvc resolverService, ResourceSvc resourceService, ExtensionSvc extensionService, QuerySvc queryService, ListenerSvc listenerService, SettingsSvc settingsService, SchedulerSvc schedulerService, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, PlanAPI.PlanAPIHolder apiHolder)
-
-
Method Details
-
getMainAddress
Deprecated.UseAddresses
instead. -
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:SubSystem
Performs enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
getVersionChecker
-
getConfigSystem
-
getPlanFiles
-
getDatabaseSystem
-
getListenerSystem
-
getTaskSystem
-
getWebServerSystem
-
getImportSystem
-
getExportSystem
-
getServerInfo
-
getCacheSystem
-
getProcessing
-
getLocaleSystem
-
getDeliveryUtilities
-
isEnabled
public boolean isEnabled() -
getExtensionService
-
getServerEnableTime
public static long getServerEnableTime()
-
Addresses
instead.