Klasse AbstractSession<C extends AbstractBackendClient<C,S>, S>
java.lang.Object
ch.nolix.system.application.main.AbstractSession<C,S>
- Typparameter:
C- is the type of theAbstractBackendClientof aAbstractSession.S- is the type of the application service of the parentApplicationof the parentAbstractBackendClientof aAbstractSession.
- Alle implementierten Schnittstellen:
IClientComponent<C>, IRefreshableSubscriber, Refreshable, AlivenessRequestable
- Bekannte direkte Unterklassen:
AbstractWebClientSession, TestSession
public abstract class AbstractSession<C extends AbstractBackendClient<C,S>, S>
extends Object
implements IClientComponent<C>, IRefreshableSubscriber
A
AbstractSession manages user run methods and user data methods.- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal booleanprotected abstract voidInitializes the currentAbstractSession.final Stringprotected abstract Class<?> final Sfinal Cfinal booleanfinal booleanisAlive()final voidpop()Pops the currentAbstractSessionfrom its parentAbstractClient.final voidPops the currentAbstractSessionfrom its parentAbstractClientwith the given result.final voidpush(AbstractSession<C, S> session) Pushes the given session to the parentAbstractClientof the currentAbstractSession.final <R> RpushAndGetResult(AbstractSession<C, S> session) Pushes the given session to the parentAbstractClientof the currentAbstractSession.final voidsetNext(AbstractSession<C, S> session) Sets the next session of the parentAbstractClientof the currentAbstractSession.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden AlivenessRequestable
isOutdatedVon Schnittstelle geerbte Methoden Refreshable
refresh
-
Konstruktordetails
-
AbstractSession
public AbstractSession()
-
-
Methodendetails
-
belongsToClient
public final boolean belongsToClient()- Angegeben von:
belongsToClientin SchnittstelleIClientComponent<C extends AbstractBackendClient<C,S>> - Gibt zurück:
- true if the current
AbstractSessionbelongs to aAbstractClient, false otherwise.
-
getApplicationName
- Gibt zurück:
- the name of the parent
Applicationof the parentAbstractClientof the currentAbstractSession.
-
getStoredApplicationService
- Gibt zurück:
- the context of the parent
Applicationof the parentAbstractClientof the currentAbstractSession.
-
getStoredParentClient
- Angegeben von:
getStoredParentClientin SchnittstelleIClientComponent<C extends AbstractBackendClient<C,S>> - Gibt zurück:
- the parent client of the current
AbstractSession. - Löst aus:
InvalidArgumentException- if the currentAbstractSessiondoes not belong to a client.
-
hasParentSession
public final boolean hasParentSession() -
isAlive
public final boolean isAlive()- Angegeben von:
isAlivein SchnittstelleAlivenessRequestable- Gibt zurück:
- true if the current
AlivenessRequestableis alive, false otherwise.
-
pop
public final void pop()Pops the currentAbstractSessionfrom its parentAbstractClient. -
pop
Pops the currentAbstractSessionfrom its parentAbstractClientwith the given result.- Parameter:
result-- Löst aus:
ArgumentIsNullException- if the given result is null.
-
push
Pushes the given session to the parentAbstractClientof the currentAbstractSession.- Parameter:
session-- Löst aus:
ArgumentIsNullException- if the given session is null.
-
pushAndGetResult
Pushes the given session to the parentAbstractClientof the currentAbstractSession.- Typparameter:
R- is the type of the returned result.- Parameter:
session-- Gibt zurück:
- the result from the given session.
- Löst aus:
ArgumentIsNullException- if the given session is null.
-
setNext
Sets the next session of the parentAbstractClientof the currentAbstractSession. That means the currentAbstractSessionwill be popped from its parentAbstractClientand the given session is pushed to the parentAbstractClientof the currentAbstractSession.- Parameter:
session-- Löst aus:
ArgumentIsNullException- if the given session is null.
-
fullInitialize
protected abstract void fullInitialize()Initializes the currentAbstractSession. -
getClientClass
- Gibt zurück:
- the
AbstractClientclass of the currentAbstractSession.
-