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 final class DeviceInitializerProviderFactory {
18 private DeviceInitializerProviderFactory() {
22 * Create default #{@link org.opendaylight.openflowplugin.impl.device.initialization.DeviceInitializerProvider}.
23 * @return the device initialization provider
25 public static DeviceInitializerProvider createDefaultProvider() {
26 final DeviceInitializerProvider provider = new DeviceInitializerProvider();
27 provider.register(OFConstants.OFP_VERSION_1_0, new OF10DeviceInitializer());
28 provider.register(OFConstants.OFP_VERSION_1_3, new OF13DeviceInitializer());