To configure a Settings (formerly Settings (formerly global properties 1.8 and below) 1.8 and below)global property listener in a module, add the followed code to moduleApplicationContext.xml:
Code Block |
---|
<!-- Add Settings (formerly global properties 1.8 and below)listenerslistenersproperty listeners --> <bean id="yourModuleEventListeners" parent="openmrsEventListeners"> <property name="globalPropertyListeners"> <list value-type="org.openmrs.api.GlobalPropertyListener" merge="true"> <bean class="org.openmrs.module.yourmodule.YourGlobalPropertyListener" /> <bean class="org.openmrs.module.yourmodule.AnotherGlobalPropertyListener" /> </list> </property> </bean> |
...