Changeset 1429
- Timestamp:
- 23/12/09 13:13:41 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/kauri-runtime-rapi/src/main/java/org/kauriproject/runtime/rapi/ConfPlaceholderConfigurer.java
r1058 r1429 29 29 String confExpr = placeholder.substring(colonPos + 1); 30 30 31 32 31 Conf conf = confRegistry.getConfiguration(confPath); 33 32 JXPathContext context = JXPathContext.newContext(conf); 34 String value = String.valueOf(context.getValue(confExpr));33 Object value = context.getValue(confExpr); 35 34 36 return value ;35 return value == null ? "" : value.toString(); 37 36 } catch (Exception e) { 38 37 throw new RuntimeException("Error fetching configuration value for placeholder \"" + placeholder + "\".", e); 39 38 } 40 39 } 40 41 41 }
