Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 11

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

...