Interface Application<C extends BackendClient<C,S>, S>

Type Parameters:
C - the type of the BackendClients of a Application
S - the type of the application service of a Application
All Superinterfaces:
ClientManager<C>, NameHolder
All Known Implementing Classes:
AbstractApplication, StandardApplication

public interface Application<C extends BackendClient<C,S>, S> extends ClientManager<C>, NameHolder
Author:
Silvan Wyss
  • Method Details

    • belongsToServer

      boolean belongsToServer()
      Returns:
      true if the current Application belongs to a server, false otherwise
    • getClientClass

      Class<C> getClientClass()
      Returns:
      the Class of the BackendClients of the current Application
    • getStoredApplicationService

      S getStoredApplicationService()
      Returns:
      the application service of the current Application
    • getUrlName

      String getUrlName()
      Returns:
      the name of the current Application for URLs
    • hasClientConnected

      boolean hasClientConnected()
      Returns:
      true if the current Application has a client connected, false otherwise
    • internalSetParentServer

      void internalSetParentServer(Server<?> parentServer)
      Sets the parent Server of the current Application.
      Parameters:
      parentServer -
      Throws:
      RuntimeException - if the current Application belongs already to a Server
    • takeBackendClient

      void takeBackendClient(BackendClient<?,?> backendClient)
      Takes the given backendClient.
      Parameters:
      backendClient -
    • toTarget

      IApplicationTarget toTarget()
      Returns:
      a IApplicationTarget representation of the current Application