Barrier turn on/off-add switcher value to Config-Subsystem
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / connection / ConnectionAdapterFactoryImpl.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
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
7  */
8
9
10 package org.opendaylight.openflowjava.protocol.impl.core.connection;
11
12 import io.netty.channel.Channel;
13 import java.net.InetSocketAddress;
14
15 /**
16  * @author mirehak
17  * @author michal.polkorab
18  */
19 public class ConnectionAdapterFactoryImpl implements ConnectionAdapterFactory {
20
21     /**
22      * @param ch
23      * @return connection adapter tcp-implementation
24      */
25         @Override
26     public ConnectionFacade createConnectionFacade(final Channel ch, final InetSocketAddress address,
27             final boolean useBarrier) {
28         return new ConnectionAdapterImpl(ch, address, useBarrier);
29     }
30
31 }