]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/event/SessionEvent.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / event / SessionEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.db.event;
13
14 import org.simantics.db.Session;
15 import org.simantics.db.SessionManager;
16
17 /**
18  * An event object concerning Sessions of a SessionManager.
19  * 
20  * @author Tuukka Lehtonen
21  * @see Session
22  * @see SessionListener
23  * @see SessionManager
24  */
25 public class SessionEvent {
26
27     private final Session session;
28     private final Throwable cause;
29     
30     public SessionEvent(Session session, Throwable cause) {
31         this.session = session;
32         this.cause = cause;
33     }
34
35     public Session getSession() {
36         return session;
37     }
38
39     public Throwable getCause() {
40         return cause;
41     }
42 }