Merge remote-tracking branch 'liblldp/master'
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / device / initialization / DeviceInitializerProviderFactory.java
1 /*
2  * Copyright (c) 2017 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 package org.opendaylight.openflowplugin.impl.device.initialization;
10
11 import org.opendaylight.openflowplugin.api.OFConstants;
12
13 /**
14  * Multipart writer provider factory.
15  */
16 public final class DeviceInitializerProviderFactory {
17
18     private DeviceInitializerProviderFactory() {
19     }
20
21     /**
22      * Create default #{@link org.opendaylight.openflowplugin.impl.device.initialization.DeviceInitializerProvider}.
23      * @return the device initialization provider
24      */
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());
29         return provider;
30     }
31
32 }