Class DialogSessionApplicationContextFactory

java.lang.Object
org.eclnt.ccee.spring.context.DialogSessionApplicationContextFactory

public class DialogSessionApplicationContextFactory extends Object
CaptainCasa' server processing is always within a scope of a dialog session. This might be a real http session (if using URL-jssesionid-rewriting) or if might be some session-mechanism below the http session (if using COOKIE based URL-session-tracking).

For each dialog session there is an own DialogSessionApplicationContext which is available during the request/response processing on server side.

The application context itself is picked from the web-application-context, where it is defined with name: "DialogSessionApplicationContext".
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.context.support.AbstractApplicationContext
    Default method for creating the object within the scope of a request/response processing.
    static org.springframework.context.support.AbstractApplicationContext
    instance(org.eclnt.jsfserver.util.ISessionAbstraction dialogSession)
    If NOT being inside a request/response processing then the dialog session needs to be explicitly passed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DialogSessionApplicationContextFactory

      public DialogSessionApplicationContextFactory()
  • Method Details

    • instance

      public static org.springframework.context.support.AbstractApplicationContext instance()
      Default method for creating the object within the scope of a request/response processing. Internally calls instance(ISessionAbstraction).
      Returns:
    • instance

      public static org.springframework.context.support.AbstractApplicationContext instance(org.eclnt.jsfserver.util.ISessionAbstraction dialogSession)
      If NOT being inside a request/response processing then the dialog session needs to be explicitly passed. (e.g. if running in some thread that runs in parallel to request/response processing).
      Returns: