KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > delivery > MockOnceAndOnlyOnceProtocolNetworkLayerFactory


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.net.protocol.delivery;
5
6 import com.tc.async.api.Sink;
7 import com.tc.net.protocol.delivery.OnceAndOnlyOnceProtocolNetworkLayer;
8 import com.tc.net.protocol.delivery.OnceAndOnlyOnceProtocolNetworkLayerFactory;
9
10
11 public class MockOnceAndOnlyOnceProtocolNetworkLayerFactory implements OnceAndOnlyOnceProtocolNetworkLayerFactory {
12   
13   public OnceAndOnlyOnceProtocolNetworkLayer layer;
14   
15   public OnceAndOnlyOnceProtocolNetworkLayer createNewInstance(Sink workSink) {
16     return layer;
17   }
18   
19 }
Popular Tags