2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.protocol.impl.connection;
11 import io.netty.channel.socket.SocketChannel;
15 * @author michal.polkorab
17 public abstract class ConnectionAdapterFactory {
21 * @return connection adapter tcp-implementation
23 public static ConnectionFacade createConnectionAdapter(SocketChannel ch) {
24 ConnectionAdapterImpl connectionAdapter = new ConnectionAdapterImpl();
25 connectionAdapter.setChannel(ch);
26 return connectionAdapter;