-
-
Notifications
You must be signed in to change notification settings - Fork 7
Application bootstrap
Ahmad K. Bawaneh edited this page Nov 7, 2021
·
1 revision
The following is the order of things that happens during a Domino-mvp application startup :
- Configure submodules. this means every submodule entry point will be executed to configure the module as part of the application.
- The main frontend module entry point is executed in which we call
ClientApp.make().run()
. - The
run
can take an argument to register a handler that will be called to do further configuration
ClientApp.make().run(new ClientApp.DominoOptionsHandler() {
@Override
public void onBeforeRun(CanSetDominoOptions dominoOptions) {
//do something here before going to next bootstrap step.
}
});
- Call all simple startup tasks
- Call all async startup tasks.
- Call all routing tasks.
- Fire the
MainDominoEvent
. - Call Application startup handler which can be set in the run method like this
ClientApp.make().run(new ClientApp.DominoOptionsHandler() {
@Override
public void onBeforeRun(CanSetDominoOptions dominoOptions) {
dominoOptions.setApplicationStartHandler(() -> {
});
}
});