@Singleton public class ServerServerInfo extends ServerInfo
Also manages Server ID required for MySQL database independence.
server, serverProperties
Constructor and Description |
---|
ServerServerInfo(ServerProperties serverProperties,
ServerInfoFile serverInfoFile,
Processing processing,
PlanConfig config,
DBSystem dbSystem,
dagger.Lazy<WebServer> webServer,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
enable()
Performs enable actions for the subsystem.
|
protected void |
loadServerInfo() |
disable, generateNewUUID, getServer, getServerProperties, getServerUUID
@Inject public ServerServerInfo(ServerProperties serverProperties, ServerInfoFile serverInfoFile, Processing processing, PlanConfig config, DBSystem dbSystem, dagger.Lazy<WebServer> webServer, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void enable() throws EnableException
SubSystem
enable
in interface SubSystem
enable
in class ServerInfo
EnableException
- If an error occurred during enable and it is fatal to the subsystem.protected void loadServerInfo() throws EnableException
loadServerInfo
in class ServerInfo
EnableException