* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowjava.protocol.impl.serialization;
import org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry;
* @author michal.polkorab
*/
public final class InstructionsInitializer {
-
private InstructionsInitializer() {
throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
}
*
* @param serializerRegistry registry to be initialized with instruction serializers
*/
- public static void registerInstructionSerializers(SerializerRegistry serializerRegistry) {
+ public static void registerInstructionSerializers(final SerializerRegistry serializerRegistry) {
// register OF v1.3 instruction serializers
InstructionSerializerRegistryHelper helper = new InstructionSerializerRegistryHelper(
- EncodeConstants.OF13_VERSION_ID, serializerRegistry);
+ EncodeConstants.OF_VERSION_1_3, serializerRegistry);
helper.registerSerializer(GotoTableCase.class, new GoToTableInstructionSerializer());
helper.registerSerializer(WriteMetadataCase.class, new WriteMetadataInstructionSerializer());
helper.registerSerializer(WriteActionsCase.class, new WriteActionsInstructionSerializer());