1 /*******************************************************************************
2 * Copyright (c) 2007, 2011 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.db.management;
15 * @author Tuukka Lehtonen
17 public class SessionContextChangedEvent {
19 private final ISessionContextProvider source;
21 private final Object handle;
23 private final ISessionContext oldValue;
25 private final ISessionContext newValue;
27 public SessionContextChangedEvent(ISessionContextProvider source, Object forHandle, ISessionContext oldValue, ISessionContext newValue) {
29 this.handle = forHandle;
30 this.oldValue = oldValue;
31 this.newValue = newValue;
34 public ISessionContextProvider getSource() {
38 public Object getHandle() {
42 public ISessionContext getOldValue() {
46 public ISessionContext getNewValue() {