01: /**
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */package com.tc.async.impl;
04:
05: import com.tc.async.api.AbstractEventHandler;
06: import com.tc.async.api.EventContext;
07:
08: import java.util.LinkedList;
09: import java.util.List;
10:
11: /**
12: * @author steve
13: */
14: public class TestEventHandler extends AbstractEventHandler {
15: private LinkedList contexts = new LinkedList();
16:
17: /*
18: * (non-Javadoc)
19: *
20: * @see com.tc.async.api.EventHandler#handleEvent(com.tc.async.api.EventContext)
21: */
22: public void handleEvent(EventContext context) {
23: contexts.add(context);
24: }
25:
26: public List getContexts() {
27: return contexts;
28: }
29: }
|