public interface SerializerRegistry
Modifier and Type | Method and Description |
---|---|
<K,S extends OFGeneralSerializer> |
getSerializer(MessageTypeKey<K> msgTypeKey)
Gets the serializer for the given type.
|
void |
init()
Serializer registry provisioning.
|
boolean |
isGroupAddModEnabled()
Checks if group add mod messages are enabled.
|
<K> void |
registerSerializer(MessageTypeKey<K> key,
OFGeneralSerializer serializer)
Registers a serializer.
|
void |
setGroupAddModConfig(boolean isGroupAddModEnabled)
Sets whether or not group add mod messages are enabled.
|
<K> boolean |
unregisterSerializer(MessageTypeKey<K> key)
Unregisters a serializer.
|
void init()
<K,S extends OFGeneralSerializer> S getSerializer(MessageTypeKey<K> msgTypeKey)
K
- input key typeS
- type of resulting serializermsgTypeKey
- lookup key<K> void registerSerializer(MessageTypeKey<K> key, OFGeneralSerializer serializer)
Throws IllegalStateException when there is a serializer already registered under given key.
If the serializer implements SerializerRegistryInjector
interface,
the serializer is injected with SerializerRegistry instance.
K
- serializer key typekey
- used for serializer lookupserializer
- serializer implementation<K> boolean unregisterSerializer(MessageTypeKey<K> key)
K
- serializer key typekey
- used for serializer lookupboolean isGroupAddModEnabled()
void setGroupAddModConfig(boolean isGroupAddModEnabled)
isGroupAddModEnabled
- true if group add mod messages are enabledCopyright © 2020 OpenDaylight. All rights reserved.