-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.impl.serialization;\r
-\r
-import org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.ApplyActionsInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.ClearActionsInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.GoToTableInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.MeterInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.WriteActionsInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.WriteMetadataInstructionSerializer;\r
-import org.opendaylight.openflowjava.protocol.impl.util.InstructionSerializerRegistryHelper;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.ApplyActions;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.ClearActions;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.GotoTable;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.Meter;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.WriteActions;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.WriteMetadata;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public final class InstructionsInitializer {\r
-\r
- private InstructionsInitializer() {\r
- throw new UnsupportedOperationException("Utility class shouldn't be instantiated");\r
- }\r
-\r
- /**\r
- * Registers instruction serializers into provided registry\r
- * @param serializerRegistry registry to be initialized with instruction serializers\r
- */\r
- public static void registerInstructionSerializers(SerializerRegistry serializerRegistry) {\r
- // register OF v1.3 instruction serializers\r
- InstructionSerializerRegistryHelper helper= new InstructionSerializerRegistryHelper(\r
- EncodeConstants.OF13_VERSION_ID, serializerRegistry);\r
- helper.registerSerializer(GotoTable.class, new GoToTableInstructionSerializer());\r
- helper.registerSerializer(WriteMetadata.class, new WriteMetadataInstructionSerializer());\r
- helper.registerSerializer(WriteActions.class, new WriteActionsInstructionSerializer());\r
- helper.registerSerializer(ApplyActions.class, new ApplyActionsInstructionSerializer());\r
- helper.registerSerializer(ClearActions.class, new ClearActionsInstructionSerializer());\r
- helper.registerSerializer(Meter.class, new MeterInstructionSerializer());\r
- }\r
-}\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * 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;
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.ApplyActionsInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.ClearActionsInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.GoToTableInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.MeterInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.WriteActionsInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.serialization.instruction.WriteMetadataInstructionSerializer;
+import org.opendaylight.openflowjava.protocol.impl.util.InstructionSerializerRegistryHelper;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.ApplyActions;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.ClearActions;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.GotoTable;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.Meter;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.WriteActions;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.WriteMetadata;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public final class InstructionsInitializer {
+
+ private InstructionsInitializer() {
+ throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
+ }
+
+ /**
+ * Registers instruction serializers into provided registry
+ * @param serializerRegistry registry to be initialized with instruction serializers
+ */
+ public static void registerInstructionSerializers(SerializerRegistry serializerRegistry) {
+ // register OF v1.3 instruction serializers
+ InstructionSerializerRegistryHelper helper= new InstructionSerializerRegistryHelper(
+ EncodeConstants.OF13_VERSION_ID, serializerRegistry);
+ helper.registerSerializer(GotoTable.class, new GoToTableInstructionSerializer());
+ helper.registerSerializer(WriteMetadata.class, new WriteMetadataInstructionSerializer());
+ helper.registerSerializer(WriteActions.class, new WriteActionsInstructionSerializer());
+ helper.registerSerializer(ApplyActions.class, new ApplyActionsInstructionSerializer());
+ helper.registerSerializer(ClearActions.class, new ClearActionsInstructionSerializer());
+ helper.registerSerializer(Meter.class, new MeterInstructionSerializer());
+ }
+}