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.exception.ImplementMe;
07: import com.tc.net.protocol.NetworkStackHarness;
08: import com.tc.net.protocol.NetworkStackHarnessFactory;
09: import com.tc.net.protocol.tcm.MessageChannelInternal;
10: import com.tc.net.protocol.tcm.ServerMessageChannelFactory;
11:
12: public class MockStackHarnessFactory implements
13: NetworkStackHarnessFactory {
14: public NetworkStackHarness harness;
15:
16: public NetworkStackHarness createServerHarness(
17: ServerMessageChannelFactory channelFactory,
18: MessageTransport transport,
19: MessageTransportListener[] transportListeners) {
20: return harness;
21: }
22:
23: public NetworkStackHarness createClientHarness(
24: MessageTransportFactory transportFactory,
25: MessageChannelInternal channel,
26: MessageTransportListener[] transportListeners) {
27: throw new ImplementMe();
28: }
29:
30: }
|