KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > TestWireProtocolAdaptorFactory


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.transport;
5
6 import com.tc.net.protocol.TCProtocolAdaptor;
7 import com.tc.util.concurrent.NoExceptionLinkedQueue;
8
9 public class TestWireProtocolAdaptorFactory implements WireProtocolAdaptorFactory {
10   public final NoExceptionLinkedQueue newWireProtocolAdaptorCalls = new NoExceptionLinkedQueue();
11
12   public TCProtocolAdaptor newWireProtocolAdaptor(WireProtocolMessageSink sink) {
13     WireProtocolAdaptor rv = new WireProtocolAdaptorImpl(sink);
14     newWireProtocolAdaptorCalls.put(sink);
15     return rv;
16   }
17
18 }
19
Popular Tags