Package ch.nolix.system.application.main
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 theAbstractBackendClient
of aAbstractSession
.S
- is the type of the context of the parentApplication
of the parentAbstractBackendClient
of 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.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
protected abstract void
Initializes the currentAbstractSession
.final String
protected abstract Class
<?> final S
final C
final boolean
final boolean
isAlive()
final void
pop()
Pops the currentAbstractSession
from its parentAbstractClient
.final void
Pops the currentAbstractSession
from its parentAbstractClient
with the given result.final void
push
(AbstractSession<C, S> session) Pushes the given session to the parentAbstractClient
of the currentAbstractSession
.final <R> R
pushAndGetResult
(AbstractSession<C, S> session) Pushes the given session to the parentAbstractClient
of the currentAbstractSession
.final void
setNext
(AbstractSession<C, S> session) Sets the next session of the parentAbstractClient
of the currentAbstractSession
.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
-
AbstractSession
public AbstractSession()
-
-
Methodendetails
-
belongsToClient
public final boolean belongsToClient()- Angegeben von:
belongsToClient
in SchnittstelleIClientComponent<C extends AbstractBackendClient<C,
S>> - Gibt zurück:
- true if the current
AbstractSession
belongs to aAbstractClient
.
-
getApplicationName
- Gibt zurück:
- the name of the parent
Application
of the parentAbstractClient
of the currentAbstractSession
.
-
getStoredApplicationService
- Gibt zurück:
- the context of the parent
Application
of the parentAbstractClient
of the currentAbstractSession
.
-
getStoredParentClient
- Angegeben von:
getStoredParentClient
in SchnittstelleIClientComponent<C extends AbstractBackendClient<C,
S>> - Gibt zurück:
- the parent client of the current
AbstractSession
. - Löst aus:
InvalidArgumentException
- if the currentAbstractSession
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()Pops the currentAbstractSession
from its parentAbstractClient
. -
pop
Pops the currentAbstractSession
from its parentAbstractClient
with the given result.- Parameter:
result
-- Löst aus:
ArgumentIsNullException
- if the given result is null.
-
push
Pushes the given session to the parentAbstractClient
of the currentAbstractSession
.- Parameter:
session
-- Löst aus:
ArgumentIsNullException
- if the given session is null.
-
pushAndGetResult
Pushes the given session to the parentAbstractClient
of 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 parentAbstractClient
of the currentAbstractSession
. That means the currentAbstractSession
will be popped from its parentAbstractClient
and the given session is pushed to the parentAbstractClient
of 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
AbstractClient
class of the currentAbstractSession
.
-