KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > change > event > LogicalChangeEvent


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.object.change.event;
5
6 import com.tc.object.change.TCChangeBufferEvent;
7 import com.tc.object.dna.api.DNAWriter;
8
9 /**
10  * Nov 22, 2004: Event representing any logical actions that need to be logged
11  */

12 public class LogicalChangeEvent implements TCChangeBufferEvent {
13   private final int method;
14   private final Object JavaDoc[] parameters;
15
16   public LogicalChangeEvent(int method, Object JavaDoc[] parameters) {
17     this.parameters = parameters;
18     this.method = method;
19   }
20
21   public void write(DNAWriter writer) {
22     writer.addLogicalAction(method, parameters);
23   }
24
25   public int getMethodID() {
26     return method;
27   }
28
29   public Object JavaDoc[] getParameters() {
30     return parameters;
31   }
32 }
Popular Tags