Page 1 of 1

Extensions startup priority

Posted: 16 Jul 2018, 05:56
by sadensmol
I couldn't find info about this in documentation.
I need to get some extension initializing after all others.
For example Ext1, Ext2, ExtA, Ext4.
I need ExtA to be initialised after all other extensions.
Is there any config parameters to show the extension init priority/order?


Re: Extensions startup priority

Posted: 16 Jul 2018, 06:09
by Lapo
Extensions are started "linearly" by reading the config files.
In other words, every .zone.xml file is loaded, parsed and, as Extensions declarations are encountered, they are created.

When you need coordination among extensions I would recommend to use the SFSEvent.SERVER_READY event. This is fired when the server has completed the booting process.
At that moment all Extension are ready and therefore you can make them cross-talk, if that's the problem.

If this is not helpful I need to understand your use case better.