-/*\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.deserialization;\r
-\r
-import org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerRegistry;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.ApplyActionsInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.ClearActionsInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.GoToTableInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.MeterInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.WriteActionsInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.WriteMetadataInstructionDeserializer;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
-import org.opendaylight.openflowjava.protocol.impl.util.SimpleDeserializerRegistryHelper;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.instructions.grouping.Instruction;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public class InstructionDeserializerInitializer {\r
-\r
- /**\r
- * Registers instruction deserializers\r
- * @param registry registry to be filled with deserializers\r
- */\r
- public static void registerDeserializers(DeserializerRegistry registry) {\r
- // register OF v1.3 instruction deserializers\r
- SimpleDeserializerRegistryHelper helper =\r
- new SimpleDeserializerRegistryHelper(EncodeConstants.OF13_VERSION_ID, registry);\r
- helper.registerDeserializer(1, Instruction.class, new GoToTableInstructionDeserializer());\r
- helper.registerDeserializer(2, Instruction.class, new WriteMetadataInstructionDeserializer());\r
- helper.registerDeserializer(3, Instruction.class, new WriteActionsInstructionDeserializer());\r
- helper.registerDeserializer(4, Instruction.class, new ApplyActionsInstructionDeserializer());\r
- helper.registerDeserializer(5, Instruction.class, new ClearActionsInstructionDeserializer());\r
- helper.registerDeserializer(6, Instruction.class, new MeterInstructionDeserializer());\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.deserialization;
+
+import org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerRegistry;
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.ApplyActionsInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.ClearActionsInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.GoToTableInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.MeterInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.WriteActionsInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.deserialization.instruction.WriteMetadataInstructionDeserializer;
+import org.opendaylight.openflowjava.protocol.impl.util.InstructionDeserializerRegistryHelper;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public final class InstructionDeserializerInitializer {
+
+ private InstructionDeserializerInitializer() {
+ throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
+ }
+
+ /**
+ * Registers instruction deserializers
+ * @param registry registry to be filled with deserializers
+ */
+ public static void registerDeserializers(DeserializerRegistry registry) {
+ // register OF v1.3 instruction deserializers
+ InstructionDeserializerRegistryHelper helper =
+ new InstructionDeserializerRegistryHelper(EncodeConstants.OF13_VERSION_ID, registry);
+ helper.registerDeserializer(1, new GoToTableInstructionDeserializer());
+ helper.registerDeserializer(2, new WriteMetadataInstructionDeserializer());
+ helper.registerDeserializer(3, new WriteActionsInstructionDeserializer());
+ helper.registerDeserializer(4, new ApplyActionsInstructionDeserializer());
+ helper.registerDeserializer(5, new ClearActionsInstructionDeserializer());
+ helper.registerDeserializer(6, new MeterInstructionDeserializer());
+ }
+}
\ No newline at end of file