Changeset 3989
- Timestamp:
- 04/22/08 14:59:39 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/dss/metadata/config.xml
r3796 r3989 7 7 <id>dss</id> 8 8 <name>Dss</name> 9 <version>2.1 1</version>9 <version>2.12</version> 10 10 <package>org.openmrs.module.@MODULE_ID@</package> 11 11 <author>Vibha Anand and Tammy Dugan</author> openmrs-modules/dss/src/org/openmrs/module/dss/impl/DssServiceImpl.java
r3796 r3989 178 178 } 179 179 180 public void loadRule(String rule, String defaultPackagePrefix) throws Exception 180 public void loadRule(String rule, String defaultPackagePrefix) 181 throws Exception 182 { 183 AdministrationService adminService = Context.getAdministrationService(); 184 String rulePackagePrefix = Util.processPackagePrefix(adminService 185 .getGlobalProperty("dss.rulePackagePrefix")); 186 this.loadRule(rule, defaultPackagePrefix, rulePackagePrefix); 187 } 188 189 public void loadRule(String rule, String defaultPackagePrefix,String rulePackagePrefix ) throws Exception 181 190 { 182 191 // Create a CompilingClassLoader 183 192 CompilingClassLoader ccl = new CompilingClassLoader(); 184 193 185 AdministrationService adminService =186 Context.getAdministrationService();187 String rulePackagePrefix = Util.processPackagePrefix(188 adminService.getGlobalProperty("dss.rulePackagePrefix"));189 190 194 Class clas = null; 191 195 openmrs-modules/dss/src/org/openmrs/module/dss/service/DssService.java
r3597 r3989 138 138 public void loadRule(String rule, String defaultPackagePrefix) 139 139 throws Exception; 140 141 /** 142 * This method tries to load a class based on the rule name and a set of package names 143 * First, it tries to load the rule from the rulePackagePrefix package. By default, this package 144 * is where the rules that are compiled on the fly live. 145 * Second, it tries to load the rule from the defaultPackagePrefix package. By default, this package 146 * contains the default library of pre-compiled rules 147 * Finally, it tries to load the rule with no package prefix 148 * @param rule 149 * @param defaultPackagePrefix 150 * @param rulePackagePrefix 151 * @throws Exception 152 */ 153 public void loadRule(String rule, String defaultPackagePrefix,String rulePackagePrefix ) 154 throws Exception; 140 155 141 156 /**