initialize

Enables hot restarting for this application. All changes to your code will restart the application.

This method will intentionally throw ImmediateRestartException on the first run, if it is caught, you must rethrow it.

It is recommended to run this function as soon as possible to avoid running the same code twice on startup.

Note: If you configure your logger programmatically, it must be done before calling this function.

Parameters

args

The program arguments, they will be passed back to the main function upon restarting

configBuilder

To further configure the feature, this will only run once per application