01: /*
02: * Copyright (c) 2003-2006 Terracotta, Inc. All rights reserved.
03: */
04: package com.tc.objectserver.context;
05:
06: import com.tc.async.api.EventContext;
07:
08: import java.util.ArrayList;
09: import java.util.List;
10:
11: public class ManagedObjectFlushingContext implements EventContext {
12:
13: private final List toFlush = new ArrayList();
14:
15: public ManagedObjectFlushingContext() {
16: super ();
17: }
18:
19: public List getObjectToFlush() {
20: return toFlush;
21: }
22:
23: public void addObjectToFlush(Object dirtyObject) {
24: toFlush.add(dirtyObject);
25: }
26:
27: }
|