registerRollback

actual open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.

actual open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.

expect open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.

actual open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.

fun registerRollback(toolFunction: KFunction<*>, rollbackToolFunction: KFunction<*>)(source)

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

Parameters

toolFunction

The function representing the primary tool to register.

rollbackToolFunction

The function representing the rollback counterpart to the primary tool.


actual open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.

actual open override fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>): RollbackToolRegistryBuilder(source)

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.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.