Class InstructionSerializerRegistryHelper
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.util.InstructionSerializerRegistryHelper
Helper class for registering instruction serializers.
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorDescriptionInstructionSerializerRegistryHelper
(org.opendaylight.yangtools.yang.common.Uint8 version, SerializerRegistry serializerRegistry) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T extends InstructionChoice>
voidregisterSerializer
(Class<T> instructionType, OFGeneralSerializer serializer) Registers given serializer.
-
Constructor Details
-
InstructionSerializerRegistryHelper
public InstructionSerializerRegistryHelper(org.opendaylight.yangtools.yang.common.Uint8 version, SerializerRegistry serializerRegistry) Constructor.- Parameters:
version
- Openflow wire versionserializerRegistry
- registry to be filled with message serializers
-
-
Method Details
-
registerSerializer
public <T extends InstructionChoice> void registerSerializer(Class<T> instructionType, OFGeneralSerializer serializer) Registers given serializer.- Parameters:
instructionType
- instruction typeserializer
- serializer instance
-