Initialization
#
InitThe 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 theBootstrap
class
#
InitAsyncsame as init but if a promise returned it will be awaited before the initialize process continued.
all initAsync
methods will run in parallel.
#
BootstrapThe bootstrap
method will be called after all init and initAsync methods called.
#
BootstrapAsyncsame as bootstrap
if a promise returned it will be awaited before the initialize process continued.
all bootstrapAsync
methods will run in parallel.