add

fun <TArgs> add(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>)(source)

Adds a tool and its corresponding rollback tool to the registry. If the tool is already present in the registry, the method does nothing.

Parameters

tool

the tool to add to the registry

rollbackTool

the rollback tool associated with the specified tool