KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcsimulator > container > ContainerStateFactoryObject


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.tcsimulator.container;
5
6 import EDU.oswego.cs.dl.util.concurrent.LinkedQueue;
7
8 import com.tc.simulator.container.ContainerState;
9 import com.tc.simulator.container.ContainerStateFactory;
10
11 public class ContainerStateFactoryObject implements ContainerStateFactory {
12
13   private final LinkedQueue statsOutputQueue;
14
15   public ContainerStateFactoryObject(LinkedQueue statsOutputQueue) {
16     this.statsOutputQueue = statsOutputQueue;
17   }
18   
19   public ContainerState newContainerState(String JavaDoc containerId) {
20     return new ContainerStateObject(containerId, statsOutputQueue);
21   }
22 }
Popular Tags