Class AbstractApplication<C extends AbstractBackendClient<C,S>, S>
java.lang.Object
ch.nolix.base.net.clientserver.AbstractApplication<C,S>
- Type Parameters:
C- the type of theAbstractBackendClients of aAbstractApplication.S- the type of the application service of aAbstractApplication.
- All Implemented Interfaces:
Application<C,S>, ClientManager<C>
- Direct Known Subclasses:
BasicApplication
public abstract class AbstractApplication<C extends AbstractBackendClient<C,S>, S>
extends Object
implements Application<C,S>
- Author:
- Silvan Wyss
-
Method Details
-
asTarget
- Specified by:
asTargetin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- a target representation of the current
Application.
-
belongsToServer
public final boolean belongsToServer()- Specified by:
belongsToServerin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- true if the current
Applicationbelongs to a server, false otherwise
-
getClientClass
- Specified by:
getClientClassin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- the class of the
BackendClients of the currentApplication.
-
getInstanceAppendix
- Specified by:
getInstanceAppendixin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- the appendix that forms the instance name of the current
Applicationwhen appended to the the application name of the currentApplication.
-
getInstanceName
- Specified by:
getInstanceNamein interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- the instance name of the current {IApplication}.
-
getStoredApplicationService
- Specified by:
getStoredApplicationServicein interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- the application service of the current
Application.
-
getStoredClients
- Specified by:
getStoredClientsin interfaceClientManager<C extends AbstractBackendClient<C,S>> - Returns:
- the clients of the current
ClientManager
-
getUrlInstanceName
- Specified by:
getUrlInstanceNamein interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- the instance name of the current
Applicationfor URLs.
-
hasClientConnected
public final boolean hasClientConnected()- Specified by:
hasClientConnectedin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- true if the current
Applicationhas aBackendClientconnected, false otherwise
-
hasInstanceAppendix
public final boolean hasInstanceAppendix()- Specified by:
hasInstanceAppendixin interfaceApplication<C extends AbstractBackendClient<C,S>, S> - Returns:
- true if the current
Applicationhas an instance appendix, false otherwise
-