01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.transport;
05:
06: import com.tc.net.protocol.TCProtocolAdaptor;
07: import com.tc.util.concurrent.NoExceptionLinkedQueue;
08:
09: public class TestWireProtocolAdaptorFactory implements
10: WireProtocolAdaptorFactory {
11: public final NoExceptionLinkedQueue newWireProtocolAdaptorCalls = new NoExceptionLinkedQueue();
12:
13: public TCProtocolAdaptor newWireProtocolAdaptor(
14: WireProtocolMessageSink sink) {
15: WireProtocolAdaptor rv = new WireProtocolAdaptorImpl(sink);
16: newWireProtocolAdaptorCalls.put(sink);
17: return rv;
18: }
19:
20: }
|