Hooks are functions that are called during the execution of a project life cycle. While most hooks are declared by the platform developers, some can be declared within an XL project. Such hooks require to extends specific classes.
Note: there can be several classes that implements any of these two interfaces. They will be ALL executed.
The classes that implements the interface RunAfterSave will automatically execute the method public void save(RegistryContext ctx) when the project is saved.
Note: the method is called when the project is saved. Not when it is recompiled. (Saving at recompilation is optional). Saving a file in the project might not save the project, (it might only trigger the recompilation).
Every classes that implements RunAfterLoad will execute the method public void load(RegistryContext ctx) when the project is loaded.