public class DeserializerRegistryImpl extends Object implements DeserializerRegistry
Constructor and Description |
---|
DeserializerRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
<T extends OFGeneralDeserializer> |
getDeserializer(MessageCodeKey key)
Gets the deserializer for the given key.
|
void |
init()
Decoder table provisioning.
|
void |
registerDeserializer(MessageCodeKey key,
OFGeneralDeserializer deserializer)
Registers a deserializer.
|
boolean |
unregisterDeserializer(MessageCodeKey key)
Unregisters a deserializer.
|
public void init()
init
in interface DeserializerRegistry
public <T extends OFGeneralDeserializer> T getDeserializer(MessageCodeKey key)
DeserializerRegistry
getDeserializer
in interface DeserializerRegistry
T
- type of particular deserializerkey
- used for deserializer lookuppublic void registerDeserializer(MessageCodeKey key, OFGeneralDeserializer deserializer)
DeserializerRegistry
If the deserializer implements DeserializerRegistryInjector
interface,
the deserializer is injected with DeserializerRegistry instance.
registerDeserializer
in interface DeserializerRegistry
key
- used for deserializer lookupdeserializer
- deserializer instancepublic boolean unregisterDeserializer(MessageCodeKey key)
DeserializerRegistry
unregisterDeserializer
in interface DeserializerRegistry
key
- used for deserializer lookupCopyright © 2020 OpenDaylight. All rights reserved.