Builder

A builder class responsible for creating a RollbackToolRegistry while managing associations between tools and their corresponding rollback tools.

Functions

Link copied to clipboard
fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>)

Registers a rollback relationship between the provided tool and its corresponding rollback tool. Ensures that the tool is not already defined in the rollback tools map.

Link copied to clipboard
fun RollbackToolRegistry.Builder.registerRollback(toolFunction: KFunction<*>, rollbackToolFunction: KFunction<*>)

Registers a relationship between a tool and its corresponding rollback tool using the specified functions.