private final DefaultMultiChannelConnector connector;
private final DefaultMessagingServer server;
private final DefaultExecutorFactory executorFactory;
public TcpMessagingServer(ClassLoader messageClassLoader) {
executorFactory = new DefaultExecutorFactory();
incomingConnector = new TcpIncomingConnector(executorFactory, messageClassLoader);
connector = new DefaultMultiChannelConnector(new NoOpOutgoingConnector(), incomingConnector, executorFactory);
server = new DefaultMessagingServer(connector, messageClassLoader);
}