2 * Copyright (c) 2016 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.protocol.serialization;
11 import org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider;
14 * Util class for injecting new serializers into OpenflowJava.
16 public class SerializerInjector {
19 * Injects serializers into provided
20 * {@link org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider}.
22 * @param provider OpenflowJava serializer extension provider
24 public static void injectSerializers(final SerializerExtensionProvider provider) {
25 // Inject new serializers here
26 MatchSerializerInjector.injectSerializers(provider);
27 ActionSerializerInjector.injectSerializers(provider);
28 InstructionSerializerInjector.injectSerializers(provider);
29 MultipartSerializerInjector.injectSerializers(provider);
30 MessageSerializerInjector.injectSerializers(provider);