Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On the module class, you define module configuration properties as Java bean properties.

Info

A bean in Magnolia configuration can have three states, which are represented by the value of a Boolean property called enabled:

  • enabled = true (default in most cases, there's no need to set this).
  • enabled = false
  • enabled = null, in which case the bean's configuration is either undefined or inherited - merged with its parent, for example when an area from a page template definition can get its values from a prototype.

The property values the class defines may be default and are persisted in the configuration data. On module start-up or when configuration data changes, the system calls the properties setter methods to set the new values on the instance of the module class, using the values from the configuration data. Module configuration items are registered in the 

Javadoc resource link
classNameinfo.magnolia.config.module.ModuleConfigurationRegistry
renderTypeasynchronous
. On a running system, you can use the Definitions app to check modules' configuration data. 

...