Added Yang code generation for Multipart messages
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / connection / ConnectionAdapterFactory.java
1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
2
3 package org.opendaylight.openflowjava.protocol.impl.connection;
4
5 import io.netty.channel.socket.SocketChannel;
6
7 /**
8  * @author mirehak
9  * @author michal.polkorab
10  */
11 public abstract class ConnectionAdapterFactory {
12
13     /**
14      * @param ch
15      * @return connection adapter tcp-implementation
16      */
17     public static ConnectionFacade createConnectionAdapter(SocketChannel ch) {
18         ConnectionAdapterImpl connectionAdapter = new ConnectionAdapterImpl();
19         connectionAdapter.setChannel(ch);
20         return connectionAdapter;
21     }
22
23 }