withHook

open fun withHook(hook: SpringApplicationHook, action: Runnable)

Perform the given action with the given SpringApplicationHook attached if the action triggers an application run.

Since

3.0.0

Parameters

hook

the hook to apply

action

the action to run

See also


open fun <T> withHook(hook: SpringApplicationHook, action: ThrowingSupplier<T>): T

Perform the given action with the given SpringApplicationHook attached if the action triggers an application run.

Return

the result of the action

Since

3.0.0

Parameters

<T>

the result type

hook

the hook to apply

action

the action to run

See also