/
Module Global Property Listeners
Module Global Property Listeners
To configure a global property listener in a module, add the followed code to moduleApplicationContext.xml:
<!-- Add global property 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>
Be sure to change the "yourModuleEventListeners" id to a custom string
, multiple selections available,
Related content
Overriding OpenMRS Default Runtime Properties
Overriding OpenMRS Default Runtime Properties
More like this
Using the Module Maven Archetype
Using the Module Maven Archetype
More like this
Multiple Instances of OpenMRS
Multiple Instances of OpenMRS
More like this
Settings Descriptions
Settings Descriptions
More like this
Updating Mavenized modules to compile against OpenMRS 1.8.0 and higher
Updating Mavenized modules to compile against OpenMRS 1.8.0 and higher
More like this
Application Configuration
Application Configuration
More like this