Transformer

interface Transformer : Module

A Transformer has the ability to mutate a Dispatch at certain points of the Dispatch lifecycle as defined by DispatchScope.

Properties

Link copied to clipboard
abstract val id: String

The unique id identifying this Module

Link copied to clipboard
abstract val version: String

A string describing the version of this Module.

Functions

Link copied to clipboard
abstract fun applyTransformation(transformation: TransformationSettings, dispatch: Dispatch, scope: DispatchScope, completion: (Dispatch?) -> Unit)

Transforms the given Dispatch using the transformation identified by transformation

Link copied to clipboard
open fun onShutdown()

Called when this Module has been determined to be shutdown. This could happen for the following reasons:

Link copied to clipboard
open fun updateConfiguration(configuration: DataObject): Module?

Called whenever updated configuration has been made available for this specific Module.