setRegisterShutdownHook

open fun setRegisterShutdownHook(registerShutdownHook: Boolean)

Sets if the created ApplicationContext should have a shutdown hook registered. Defaults to true to ensure that JVM shutdowns are handled gracefully.

Parameters

registerShutdownHook

if the shutdown hook should be registered

See also