SXAPI Core : application
The application component is the main core component creating the application object.
Configuration
To configure your application, you should follow the configuration user guide,
Loading sequence
- Load tools library
- Load timer component and expose it as global
$timer - Load log component and expose it as global
$log. Configuration is empty at this step. - Construct main application
$appobject - alias global
$timerto$app.timer - alias global
$logto$app.log - Load resource manager in
$app.resources - Load session manager in
$app.session - Load web server manager in
$app.ws
Launch sequence
- Init application
- init process signals for catching process signals
- check environments variables
- load config profile from environement variable
SXAPI_CONForsxapi.yml - init resources manager
- load each resource declared in config profile
- init each resource declared in config profile
- init session manager
- init web server manager
- Start application
- start resources manager
- start session manager
- start web server manager
- Execute callback function