KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (c) 2003-2006 Terracotta, Inc. All rights reserved.
3  */

4 package com.tc.objectserver.context;
5
6 import com.tc.async.api.EventContext;
7
8 import java.util.ArrayList JavaDoc;
9 import java.util.List JavaDoc;
10
11 public class ManagedObjectFlushingContext implements EventContext {
12
13   private final List JavaDoc toFlush = new ArrayList JavaDoc();
14
15   public ManagedObjectFlushingContext() {
16     super();
17   }
18
19   public List JavaDoc getObjectToFlush() {
20     return toFlush;
21   }
22
23   public void addObjectToFlush(Object JavaDoc dirtyObject) {
24     toFlush.add(dirtyObject);
25   }
26
27 }
28
Popular Tags