To configure a settings global property listener in a module, add the followed code to moduleApplicationContext.xml:
Code Block |
---|
<!-- Add global Settingsproperty listeners --> <bean id="yourModuleEventListeners" parent="openmrsEventListeners"> <property name="SettingsListenersglobalPropertyListeners"> <list value-type="org.openmrs.api.SettingsListenerGlobalPropertyListener" merge="true"> <bean class="org.openmrs.module.yourmodule.YourSettingsListenerYourGlobalPropertyListener" /> <bean class="org.openmrs.module.yourmodule.AnotherSettingsListenerAnotherGlobalPropertyListener" /> </list> </property> </bean> |
Note |
---|
Be sure to change the "yourModuleEventListeners" id to a custom string |
...