2 * Copyright (c) 2016 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.api.openflow.protocol.serialization;
11 public interface MatchEntrySerializerRegistry {
14 * Registers match entry serializer.
16 * @param key used for deserializer lookup
17 * @param serializer serializer instance
19 void registerEntrySerializer(MatchEntrySerializerKey key, MatchEntrySerializer serializer);
22 * Unregisters match entry serializer
23 * @param key used for serializer lookup
24 * @return true if serializer was removed, false if no serializer was found under specified key
26 boolean unregisterEntrySerializer(MatchEntrySerializerKey key);