com.sdm.quasar.client.core.application.dialog.impl
Class AbstractSessionCreator

java.lang.Object
  extended bycom.sdm.quasar.client.core.application.dialog.impl.AbstractSessionCreator
All Implemented Interfaces:
SessionCreator
Direct Known Subclasses:
DefaultSessionCreator, SpringSessionCreator

public abstract class AbstractSessionCreator
extends java.lang.Object
implements SessionCreator

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
AbstractSessionCreator()
          Creates a new AbstractSessionCreator.
 
Method Summary
protected  Session createAndActivateSession(SessionId sessionId, SessionManager sessionManager, DialogInstanceId sessionDialogInstanceId, DialogManager dialogManager, DialogServiceManager dialogServiceManager, DisposeCallback disposeCallback)
          A Session is created.
protected  DialogInstanceId createSessionDialogInstanceId(DialogManager dialogManager)
          Creates a dialog representing the session to be the root dialog for all other dialogs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sdm.quasar.client.core.application.SessionCreator
createSession
 

Constructor Detail

AbstractSessionCreator

public AbstractSessionCreator()
Creates a new AbstractSessionCreator.

Method Detail

createSessionDialogInstanceId

protected DialogInstanceId createSessionDialogInstanceId(DialogManager dialogManager)
Creates a dialog representing the session to be the root dialog for all other dialogs. Thus services and features may be installed or used within the session as well.

Parameters:
dialogManager - the dialog manager to create the first dialog weneathe the root node
Returns:
The RootControl for the session dialog

createAndActivateSession

protected Session createAndActivateSession(SessionId sessionId,
                                           SessionManager sessionManager,
                                           DialogInstanceId sessionDialogInstanceId,
                                           DialogManager dialogManager,
                                           DialogServiceManager dialogServiceManager,
                                           DisposeCallback disposeCallback)
A Session is created. This session is an adapter to the dialog representing the session.

Parameters:
sessionId - The id of the session.
sessionManager - The SessionManager managing sessions
sessionDialogInstanceId - The DialogInstanceId of the root session dialg.
dialogManager - the DialogManager managing the dialogs of the session
dialogServiceManager - the DialogServiceManager used
disposeCallback - a callback, that is called, when the session dialog is disposed
Returns:
a Session implementation