KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > api > TestObjectManagerResultsContext


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.objectserver.api;
5
6 import com.tc.objectserver.context.ObjectManagerResultsContext;
7
8 import java.util.Collections JavaDoc;
9 import java.util.Map JavaDoc;
10 import java.util.Set JavaDoc;
11
12 /**
13  * @author steve
14  */

15 public class TestObjectManagerResultsContext implements ObjectManagerResultsContext {
16
17   private final Map JavaDoc results;
18   private final Set JavaDoc objectIDs;
19
20   public TestObjectManagerResultsContext(Map JavaDoc results, Set JavaDoc objectIDs) {
21     this.results = results;
22     this.objectIDs = objectIDs;
23   }
24
25   public Map JavaDoc getResults() {
26     return results;
27   }
28
29   public void setResults(ObjectManagerLookupResults results) {
30     this.results.putAll(results.getObjects());
31   }
32
33   public Set JavaDoc getLookupIDs() {
34     return objectIDs;
35   }
36
37   public Set JavaDoc getNewObjectIDs() {
38     return Collections.EMPTY_SET;
39   }
40
41
42 }
Popular Tags