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

    Fields 
    Modifier and Type Field Description
    private T main  
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ExternalService

      public ExternalService​(java.lang.String name, T main)
      New ExternalService.
      Parameters:
      name - The name of the service.
      main - The main instance for the service.
  • Method Details

    • getMain

      public T getMain()
      Gets the instance for the ExternalService.
      Returns:
      the instance for the ExternalService.
    • getMainClass

      public java.lang.Class<T> getMainClass()
      Gets the Class of the Main.
      Returns:
      the Class of the Main.