2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.openflowjava.protocol.api.extensibility;
\r
12 * Stores and handles serializers
\r
13 * @author michal.polkorab
\r
16 public interface SerializerRegistry {
\r
19 * Serializer registry provisioning
\r
24 * @param msgTypeKey lookup key
\r
25 * @return serializer or NullPointerException if no serializer was found
\r
27 public <KEY_TYPE, SERIALIZER_TYPE extends OFGeneralSerializer> SERIALIZER_TYPE
\r
28 getSerializer(MessageTypeKey<KEY_TYPE> msgTypeKey);
\r
31 * Registers serializer under key
\r
32 * @param msgTypeKey lookup key
\r
33 * @param serializer serializer implementation
\r
35 public <KEY_TYPE> void
\r
36 registerSerializer(MessageTypeKey<KEY_TYPE> msgTypeKey, OFGeneralSerializer serializer);
\r