Class BridgeService
java.lang.Object
de.neo.rankbridge.shared.manager.services.BridgeService
- Direct Known Subclasses:
DiscordMain,ExternalService,TeamSpeakMain
public abstract class BridgeService
extends java.lang.Object
The manager for BridgeServices.
- Version:
- 1.0
- Author:
- Neo8
-
Field Summary
Fields Modifier and Type Field Description private java.lang.BooleanexternalHandlerprivate ExternalService<?>externalServiceprivate java.lang.Stringname -
Constructor Summary
Constructors Constructor Description BridgeService(java.lang.String name)New BridgeService.BridgeService(java.lang.String name, java.lang.Boolean isExternal)New BridgeService. -
Method Summary
Modifier and Type Method Description ExternalService<?>getExternalService()Gets the ExternalService.java.lang.StringgetServiceName()Gets the name of the service.java.lang.BooleanhandleExternal()Is the service handled external?protected <V> voidsetExternalService(ExternalService<V> externalService)Sets the ExternalHandler.
-
Field Details
-
name
private java.lang.String name -
externalHandler
private java.lang.Boolean externalHandler -
externalService
-
-
Constructor Details
-
BridgeService
public BridgeService(java.lang.String name)New BridgeService.- Parameters:
name- the DisplayName of the service.
-
BridgeService
public BridgeService(java.lang.String name, java.lang.Boolean isExternal)New BridgeService.- Parameters:
name- the name of the service.isExternal- Boolean whether the Service is handled external or not.
-
-
Method Details
-
setExternalService
Sets the ExternalHandler.- Type Parameters:
V- the Type of the ExternalService.- Parameters:
externalService- the ExternalService.
-
getServiceName
public java.lang.String getServiceName()Gets the name of the service.- Returns:
- the name of the service.
-
handleExternal
public java.lang.Boolean handleExternal()Is the service handled external?- Returns:
- Boolean whether the service is handled external or not.
-
getExternalService
Gets the ExternalService.- Returns:
- the ExternalService.
-