KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > impl > TestEventHandler


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.async.impl;
5
6 import com.tc.async.api.AbstractEventHandler;
7 import com.tc.async.api.EventContext;
8
9 import java.util.LinkedList JavaDoc;
10 import java.util.List JavaDoc;
11
12 /**
13  * @author steve
14  */

15 public class TestEventHandler extends AbstractEventHandler {
16   private LinkedList JavaDoc contexts = new LinkedList JavaDoc();
17
18   /*
19    * (non-Javadoc)
20    *
21    * @see com.tc.async.api.EventHandler#handleEvent(com.tc.async.api.EventContext)
22    */

23   public void handleEvent(EventContext context) {
24     contexts.add(context);
25   }
26
27   public List JavaDoc getContexts() {
28     return contexts;
29   }
30 }
Popular Tags