Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / SerializerRegistry.java
index c059014078a498792163d36047c4b1c46e849368..3014191158ad4109af4d59136bd34c6e3a0de117 100644 (file)
@@ -1,54 +1,54 @@
-/*\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
-package org.opendaylight.openflowjava.protocol.api.extensibility;\r
-\r
-\r
-\r
-\r
-/**\r
- * Stores and handles serializers \r
- * @author michal.polkorab\r
- *\r
- */\r
-public interface SerializerRegistry {\r
-\r
-    /**\r
-     * Serializer registry provisioning\r
-     */\r
-    public void init();\r
-\r
-    /**\r
-     * @param msgTypeKey lookup key\r
-     * @return serializer or NullPointerException if no serializer was found\r
-     */\r
-    <KEYTYPE, SERIALIZERTYPE extends OFGeneralSerializer> SERIALIZERTYPE \r
-        getSerializer(MessageTypeKey<KEYTYPE> msgTypeKey);\r
-\r
-    /**\r
-     * Registers serializer\r
-     * Throws IllegalStateException when there is\r
-     * a serializer already registered under given key.\r
-     * \r
-     * If the serializer implements {@link SerializerRegistryInjector} interface,\r
-     * the serializer is injected with SerializerRegistry instance.\r
-     * \r
-     * @param key used for serializer lookup\r
-     * @param serializer serializer implementation\r
-     */\r
-    <KEYTYPE> void registerSerializer(MessageTypeKey<KEYTYPE> key,\r
-            OFGeneralSerializer serializer);\r
-\r
-    /**\r
-     * Unregisters serializer\r
-     * @param key used for serializer lookup\r
-     * @param serializer serializer implementation\r
-     * @return true if serializer was removed,\r
-     *  false if no serializer was found under specified key\r
-     */\r
-    <KEYTYPE> boolean unregisterSerializer(MessageTypeKey<KEYTYPE> key);\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.api.extensibility;
+
+
+
+
+/**
+ * Stores and handles serializers 
+ * @author michal.polkorab
+ *
+ */
+public interface SerializerRegistry {
+
+    /**
+     * Serializer registry provisioning
+     */
+    public void init();
+
+    /**
+     * @param msgTypeKey lookup key
+     * @return serializer or NullPointerException if no serializer was found
+     */
+    <KEYTYPE, SERIALIZERTYPE extends OFGeneralSerializer> SERIALIZERTYPE 
+        getSerializer(MessageTypeKey<KEYTYPE> msgTypeKey);
+
+    /**
+     * Registers serializer
+     * Throws IllegalStateException when there is
+     * a serializer already registered under given key.
+     * 
+     * If the serializer implements {@link SerializerRegistryInjector} interface,
+     * the serializer is injected with SerializerRegistry instance.
+     * 
+     * @param key used for serializer lookup
+     * @param serializer serializer implementation
+     */
+    <KEYTYPE> void registerSerializer(MessageTypeKey<KEYTYPE> key,
+            OFGeneralSerializer serializer);
+
+    /**
+     * Unregisters serializer
+     * @param key used for serializer lookup
+     * @param serializer serializer implementation
+     * @return true if serializer was removed,
+     *  false if no serializer was found under specified key
+     */
+    <KEYTYPE> boolean unregisterSerializer(MessageTypeKey<KEYTYPE> key);
+}