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
$app
object - alias global
$timer
to$app.timer
- alias global
$log
to$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_CONF
orsxapi.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