Class ExternalService<T>
java.lang.Object
de.neo.rankbridge.shared.manager.services.BridgeService
de.neo.rankbridge.shared.manager.services.ExternalService<T>
- Type Parameters:
T
- Class of the main for the ExternalService.
- Direct Known Subclasses:
BungeeService
,MinecraftService
,SpigotService
public abstract class ExternalService<T> extends BridgeService
ExternalService for a BridgeService.
- Version:
- 1.0
- Author:
- Neo8
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExternalService(java.lang.String name, T main)
New ExternalService. -
Method Summary
Modifier and Type Method Description T
getMain()
Gets the instance for the ExternalService.java.lang.Class<T>
getMainClass()
Gets the Class of the Main.Methods inherited from class de.neo.rankbridge.shared.manager.services.BridgeService
getExternalService, getServiceName, handleExternal, setExternalService
-
Field Details
-
Constructor Details
-
ExternalService
New ExternalService.- Parameters:
name
- The name of the service.main
- The main instance for the service.
-
-
Method Details
-
getMain
Gets the instance for the ExternalService.- Returns:
- the instance for the ExternalService.
-
getMainClass
Gets the Class of the Main.- Returns:
- the Class of the Main.
-