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 the BackendClient of a Session.
AC - is the type of the context of the parent Application of the parent BackendClient of a Session.
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
  • Konstruktordetails

    • Session

      public Session()
  • Methodendetails

    • belongsToClient

      public final boolean belongsToClient()
      Gibt zurück:
      true if the current Session belongs to a Client.
    • getApplicationName

      public final String getApplicationName()
      Gibt zurück:
      the name of the parent Application of the parent Client of the current Session.
    • getStoredApplicationContext

      public final AC getStoredApplicationContext()
      Gibt zurück:
      the context of the parent Application of the parent Client of the current Session.
    • getStoredParentClient

      public final BC getStoredParentClient()
      Gibt zurück:
      the parent client of the current Session.
      Löst aus:
      InvalidArgumentException - if the current Session does not belong to a client.
    • hasParentSession

      public final boolean hasParentSession()
    • isAlive

      public final boolean isAlive()
      Angegeben von:
      isAlive in Schnittstelle AlivenessRequestable
      Gibt zurück:
      true if the current AlivenessRequestable is alive.
    • pop

      public final void pop()
      Pops the current Session from its parent Client.
    • pop

      public final void pop(Object result)
      Pops the current Session from its parent Client with the given result.
      Parameter:
      result -
      Löst aus:
      ArgumentIsNullException - if the given result is null.
    • push

      public final void push(Session<BC,AC> session)
      Pushes the given session to the parent Client of the current Session.
      Parameter:
      session -
      Löst aus:
      ArgumentIsNullException - if the given session is null.
    • pushAndGetResult

      public final <R> R pushAndGetResult(Session<BC,AC> session)
      Pushes the given session to the parent Client of the current Session.
      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

      public final void setNext(Session<BC,AC> session)
      Sets the next session of the parent Client of the current Session. That means the current Session will be popped from its parent Client and the given session is pushed to the parent Client of the current Session.
      Parameter:
      session -
      Löst aus:
      ArgumentIsNullException - if the given session is null.
    • fullInitialize

      protected abstract void fullInitialize()
      Initializes the current Session.
    • getClientClass

      protected abstract Class<?> getClientClass()
      Gibt zurück:
      the Client class of the current Session.