Your module may have a module class. This class is the "root" bean of the configuration of your module. This means you can add bean properties to the class. When the module is loaded the Node2Bean mechanism will read property values from the configuration and set them in the instance of the module class.
When using the module class for configuration, create the module configuration in the
/modules/<name-of-your-module>/config directory. Bootstrap this data to ensure proper installation and setting of the
An example module class that uses the configuration above would look like this:
Bean properties can be more complex, nested objects.
If you want to control processes during the start and stop phase of the module, implement ModuleLifecycle .