Merge "Fix checkstyle warnings for impl/protocol test package"
[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 class DeviceInitializerProviderFactory {
17
18     /**
19      * Create default #{@link org.opendaylight.openflowplugin.impl.device.initialization.DeviceInitializerProvider}.
20      * @return the device initialization provider
21      */
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());
26         return provider;
27     }
28
29 }