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, 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
-
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, 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. -
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
-
getErrorLogger
Deprecated.A smell, dagger should be used to construct things instead.Originally visible for testing purposes.- Returns:
- the error logger of the system
-
getServerEnableTime
public static long getServerEnableTime()
-