Package ch.nolix.system.application.main
Klasse Session<BC extends BackendClient<BC,AC>,AC>
java.lang.Object
ch.nolix.system.application.main.Session<BC,AC>
- Typparameter:
BC
- is the type of theBackendClient
of aSession
.AC
- is the type of the context of the parentApplication
of the parentBackendClient
of aSession
.
- Alle implementierten Schnittstellen:
IRefreshableSubscriber
,Refreshable
,AlivenessRequestable
- Bekannte direkte Unterklassen:
BaseWebClientSession
,TestSession
public abstract class Session<BC extends BackendClient<BC,AC>,AC>
extends Object
implements IRefreshableSubscriber
A
Session
manages user run methods and user data methods.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
protected abstract void
Initializes the currentSession
.final String
protected abstract Class
<?> final AC
final BC
final boolean
final boolean
isAlive()
final void
pop()
final void
final void
final <R> R
pushAndGetResult
(Session<BC, AC> session) final void
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.AlivenessRequestable
isOutdated
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.triggerapi.Refreshable
refresh
-
Konstruktordetails
-
Session
public Session()
-
-
Methodendetails
-
belongsToClient
public final boolean belongsToClient() -
getApplicationName
- Gibt zurück:
- the name of the parent
Application
of the parentClient
of the currentSession
.
-
getStoredApplicationContext
- Gibt zurück:
- the context of the parent
Application
of the parentClient
of the currentSession
.
-
getStoredParentClient
- Gibt zurück:
- the parent client of the current
Session
. - Löst aus:
InvalidArgumentException
- if the currentSession
does not belong to a client.
-
hasParentSession
public final boolean hasParentSession() -
isAlive
public final boolean isAlive()- Angegeben von:
isAlive
in SchnittstelleAlivenessRequestable
- Gibt zurück:
- true if the current
AlivenessRequestable
is alive.
-
pop
public final void pop() -
pop
- Parameter:
result
-- Löst aus:
ArgumentIsNullException
- if the given result is null.
-
push
- Parameter:
session
-- Löst aus:
ArgumentIsNullException
- if the given session is null.
-
pushAndGetResult
- 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 parentClient
of the currentSession
. That means the currentSession
will be popped from its parentClient
and the given session is pushed to the parentClient
of the currentSession
.- Parameter:
session
-- Löst aus:
ArgumentIsNullException
- if the given session is null.
-
fullInitialize
protected abstract void fullInitialize()Initializes the currentSession
. -
getClientClass
-