Initialization
Init#
The init method will be called after all instances created and all the properties injected.
You don't have a guarantee which initMethod will be called first.
If the init method return promise the injector will not wait for the result. if you need ordered class init you can use theBootstrapclass
InitAsync#
same as init but if a promise returned it will be awaited before the initialize process continued.
all initAsync methods will run in parallel.
Bootstrap#
The bootstrap method will be called after all init and initAsync methods called.
BootstrapAsync#
same as bootstrap if a promise returned it will be awaited before the initialize process continued.
all bootstrapAsync methods will run in parallel.