Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced Global Properties with Settings

To configure a global property settings listener in a module, add the followed code to moduleApplicationContext.xml:

Code Block
<!-- Add globalSettings property listeners -->
<bean id="yourModuleEventListeners" parent="openmrsEventListeners">
	<property name="globalPropertyListenersSettingsListeners">
		<list value-type="org.openmrs.api.GlobalPropertyListenerSettingsListener" merge="true">
			<bean class="org.openmrs.module.yourmodule.YourGlobalPropertyListenerYourSettingsListener" />
			<bean class="org.openmrs.module.yourmodule.AnotherGlobalPropertyListenerAnotherSettingsListener" />
		</list>
	</property>
</bean>

...

Note

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

Learn more about Settings here