|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.application.dialog.impl.AbstractSessionCreator
com.sdm.quasar.client.spring.application.dialog.impl.SpringSessionCreator
Creates the session using a spring bean factory.
createSession(com.sdm.quasar.client.core.application.SessionId, com.sdm.quasar.client.core.application.Application)| Constructor Summary | |
SpringSessionCreator(java.lang.String sessionConfigFilename)
Constructor. |
|
| Method Summary | |
Session |
createSession(SessionId sessionId,
Application application)
Creates the session using a spring bean factory. |
protected void |
registerMultipleServices(DialogServiceManager dialogServiceManager,
DialogInstanceId sessionDialogId,
java.util.Map serviceMap)
Registers all given services for the session id. |
| Methods inherited from class com.sdm.quasar.client.core.application.dialog.impl.AbstractSessionCreator |
createAndActivateSession, createSessionDialogInstanceId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpringSessionCreator(java.lang.String sessionConfigFilename)
sessionConfigFilename - the filename of the Spring configuration of
the session, see
createSession(com.sdm.quasar.client.core.application.SessionId, com.sdm.quasar.client.core.application.Application)
for details.| Method Detail |
public Session createSession(SessionId sessionId,
Application application)
The following contract is made between the xml definition and the bean factory configuration:
DialogManager with the ID 'dialogmanager'
(defined in #DIALOG_MANAGER_BEAN_NAME).
DialogServiceManager with the ID 'servicemanager'
(defined in #SERVICE_MANAGER_BEAN_NAME).
DialogConfigurationProvider
is provided as singleton with the id 'sessionId' #DIALOG_CONFIGURATION_PROVIDER_BEAN_NAME.DialogPropertiesProvider
is provided as singleton with the id 'sessionId' #DIALOG_PROPERTIES_PROVIDER_BEAN_NAME.SessionId)
is provided as singleton with the id 'sessionId' (defined in
#SESSION_ID_NAME).
Application)
is provided as singleton with the id 'application' (defined in
#APPLICATION_NAME).
ID) is
provided as singleton with the id 'applicationId' (defined in
#APPLICATION_ID_NAME).
SessionManager)
is provided as singleton with the id 'sessionManager' (defined in
#SESSION_MANAGER_NAME).
ConfigManager)
is provided as singleton with the id 'configManager' (defined in
#CONFIG_MANAGER_NAME).
ServiceManager)
is provided as singleton with the id 'applicationServiceManager' (defined
in #APPLICATION_SERVICE_MANAGER_NAME).
Map with the ID
'initialSessionServices' (defined in
#SESSION_SERVICES_NAME), the services specified in that map are
registered with the session id. See {@link #SESSION_SERVICES_NAME} for more
information about the content of the {@link java.util.Map}.
createSession in interface SessionCreatorsessionId - the session id for the new session instanceapplication - the application
protected void registerMultipleServices(DialogServiceManager dialogServiceManager,
DialogInstanceId sessionDialogId,
java.util.Map serviceMap)
dialogServiceManager - the DialogServiceManager to register services atsessionDialogId - the DialogInstanceId of the sessionserviceMap - the map containing the service interface class or the
classname as key and the service implementation as value.for information about the content of the map.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||