KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > context > ApplyTransactionContext


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.objectserver.context;
5
6 import com.tc.async.api.EventContext;
7 import com.tc.objectserver.tx.ServerTransaction;
8
9 import java.util.Map JavaDoc;
10
11 public class ApplyTransactionContext implements EventContext {
12
13   private final ServerTransaction txn;
14   private final Map JavaDoc objects;
15
16   public ApplyTransactionContext(ServerTransaction txn, Map JavaDoc objects) {
17     this.txn = txn;
18     this.objects = objects;
19   }
20
21   public Map JavaDoc getObjects() {
22     return objects;
23   }
24
25   public ServerTransaction getTxn() {
26     return txn;
27   }
28
29 }
30
Popular Tags