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
Setting and Reading Global Properties
Setting and Reading Global Properties
More like this
Event Module
Event Module
More like this
Module Activator
Module Activator
More like this
Module Dependencies
Module Dependencies
More like this
Creating Modules
Creating Modules
More like this
Module Servlets
Module Servlets
More like this