use of org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.ApplyActionsInstructionSerializer in project openflowplugin by opendaylight.
the class InstructionSerializerInjector method injectSerializers.
/**
* Injects serializers into provided
* {@link org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider}.
*
* @param provider OpenflowJava serializer extension provider
*/
static void injectSerializers(final SerializerExtensionProvider provider) {
// Inject new instruction serializers here using injector created by createInjector method
final Function<Class<? extends Instruction>, Consumer<OFSerializer<? extends Instruction>>> injector = createInjector(provider, EncodeConstants.OF13_VERSION_ID);
injector.apply(ApplyActionsCase.class).accept(new ApplyActionsInstructionSerializer());
injector.apply(ClearActionsCase.class).accept(new ClearActionsInstructionSerializer());
injector.apply(GoToTableCase.class).accept(new GoToTableInstructionSerializer());
injector.apply(MeterCase.class).accept(new MeterInstructionSerializer());
injector.apply(WriteActionsCase.class).accept(new WriteActionsInstructionSerializer());
injector.apply(WriteMetadataCase.class).accept(new WriteMetadataInstructionSerializer());
}
Aggregations