Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

To configure a Settings (formerly Settings (formerly global properties 1.8 and below) 1.8 and below)listener in a module, add the followed code to moduleApplicationContext.xml:

<!-- Add Settings (formerly global properties 1.8 and below)listenerslisteners -->
<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>

Be sure to change the "yourModuleEventListeners" id to a custom string

  • No labels