use of org.eclipse.scout.rt.shared.services.common.context.SharedVariableMap in project scout.rt by eclipse.
the class AbstractServerSession method initConfig.
protected void initConfig() {
m_sharedVariableMap.addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent e) {
if (IClientNodeId.CURRENT.get() != null) {
String sessionId = getId();
if (sessionId != null) {
SharedContextChangedNotification notification = new SharedContextChangedNotification(new SharedVariableMap(m_sharedVariableMap));
BEANS.get(ClientNotificationRegistry.class).putTransactionalForSession(sessionId, notification);
} else {
LOG.warn("No sessionId set");
}
}
}
});
if (m_initialized) {
return;
}
m_initialized = true;
}
Aggregations