2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.openflowplugin.impl.device.initialization;
11 import org.opendaylight.openflowplugin.api.OFConstants;
14 * Multipart writer provider factory.
16 public class DeviceInitializerProviderFactory {
19 * Create default #{@link org.opendaylight.openflowplugin.impl.device.initialization.DeviceInitializerProvider}.
20 * @return the device initialization provider
22 public static DeviceInitializerProvider createDefaultProvider() {
23 final DeviceInitializerProvider provider = new DeviceInitializerProvider();
24 provider.register(OFConstants.OFP_VERSION_1_0, new OF10DeviceInitializer());
25 provider.register(OFConstants.OFP_VERSION_1_3, new OF13DeviceInitializer());