Interface Application<C extends BackendClient<C,S>, S>
- Type Parameters:
C- the type of theBackendClients of aApplicationS- the type of the application service of aApplication
- All Superinterfaces:
ClientManager<C>, NameHolder
- All Known Implementing Classes:
AbstractApplication, StandardApplication
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidinternalSetParentServer(Server<?> parentServer) Sets the parentServerof the currentApplication.voidtakeBackendClient(BackendClient<?, ?> backendClient) Takes the given backendClient.toTarget()Methods inherited from interface ClientManager
getStoredClientsMethods inherited from interface NameHolder
getName, getNameInSingleQuotes, hasName, hasSameNameAs
-
Method Details
-
belongsToServer
boolean belongsToServer()- Returns:
- true if the current
Applicationbelongs to a server, false otherwise
-
getClientClass
- Returns:
- the
Classof theBackendClients of the currentApplication
-
getStoredApplicationService
S getStoredApplicationService()- Returns:
- the application service of the current
Application
-
getUrlName
String getUrlName()- Returns:
- the name of the current
Applicationfor URLs
-
hasClientConnected
boolean hasClientConnected()- Returns:
- true if the current
Applicationhas a client connected, false otherwise
-
internalSetParentServer
Sets the parentServerof the currentApplication.- Parameters:
parentServer-- Throws:
RuntimeException- if the currentApplicationbelongs already to aServer
-
takeBackendClient
Takes the given backendClient.- Parameters:
backendClient-
-
toTarget
IApplicationTarget toTarget()- Returns:
- a
IApplicationTargetrepresentation of the currentApplication
-