org.openmrs.module.rulesengine.RulesEngineActivator Maven / Gradle / Ivy
package org.openmrs.module.rulesengine;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.module.ModuleActivator;
import org.openmrs.module.rulesengine.util.RulesEngineProperties;
/**
* This class contains the logic that is run every time this module is either started or stopped.
*/
public class RulesEngineActivator implements ModuleActivator {
protected Log log = LogFactory.getLog(getClass());
/**
* @see ModuleActivator#willRefreshContext()
*/
public void willRefreshContext() {
log.info("Refreshing Rules Engine Module");
}
/**
* @see ModuleActivator#contextRefreshed()
*/
public void contextRefreshed() {
log.info("Rules Engine Module refreshed");
}
/**
* @see ModuleActivator#willStart()
*/
public void willStart() {
log.info("Starting Rules Engine Module");
}
/**
* @see ModuleActivator#started()
*/
public void started() {
log.info("Rules Engine Module started");
RulesEngineProperties.load();
}
/**
* @see ModuleActivator#willStop()
*/
public void willStop() {
log.info("Stopping Rules Engine Module");
}
/**
* @see ModuleActivator#stopped()
*/
public void stopped() {
log.info("Rules Engine Module stopped");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy