@Override public Object getProperty(String container, String property) { if (property.startsWith("${")) { // An expression! try { ValueExpression expression = expressions.parse(property, Object.class); return expression.getValue(createExpressionContext(container)); } catch (ELException e) { return null; } } return super.getProperty(container, property); }
@Override public Object getProperty(String container, String property) { if (property.startsWith("${")) { // An expression! try { ValueExpression expression = expressions.parse(property, Object.class); return expression.getValue(createExpressionContext(container)); } catch (ELException e) { return null; } } return super.getProperty(container, property); }
@Override public Object getProperty(String container, String property) { if (property.startsWith("${")) { // An expression! try { ValueExpression expression = expressions.parse(property, Object.class); return expression.getValue(createExpressionContext(container)); } catch (ELException e) { return null; } } return super.getProperty(container, property); }
@Override @SuppressWarnings("unchecked") protected void changeContainersInConfig(BasicContainerConfig config, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { ExpressionContainerConfig tmp = (ExpressionContainerConfig) config; tmp.rawConfig.putAll(setContainers); for (String container : removeContainers) { tmp.rawConfig.remove(container); } tmp.config.clear(); for (String container : tmp.rawConfig.keySet()) { Map<String, Object> merged = mergeParents(container, tmp.rawConfig); tmp.rawConfig.put(container, merged); Map<String, Object> value = (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container)); tmp.config.put(container, value); } for (String container : tmp.config.keySet()) { Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container)); tmp.config.put(container, value); } }
@Override @SuppressWarnings("unchecked") protected void changeContainersInConfig(BasicContainerConfig config, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { ExpressionContainerConfig tmp = (ExpressionContainerConfig) config; tmp.rawConfig.putAll(setContainers); for (String container : removeContainers) { tmp.rawConfig.remove(container); } tmp.config.clear(); for (String container : tmp.rawConfig.keySet()) { Map<String, Object> merged = mergeParents(container, tmp.rawConfig); tmp.rawConfig.put(container, merged); Map<String, Object> value = (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container)); tmp.config.put(container, value); } for (String container : tmp.config.keySet()) { Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container)); tmp.config.put(container, value); } }
@Override @SuppressWarnings("unchecked") protected void changeContainersInConfig(BasicContainerConfig config, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { ExpressionContainerConfig tmp = (ExpressionContainerConfig) config; tmp.rawConfig.putAll(setContainers); for (String container : removeContainers) { tmp.rawConfig.remove(container); } tmp.config.clear(); for (String container : tmp.rawConfig.keySet()) { Map<String, Object> merged = mergeParents(container, tmp.rawConfig); tmp.rawConfig.put(container, merged); Map<String, Object> value = (Map<String, Object>) parseAll(merged, tmp.createExpressionContext(container)); tmp.config.put(container, value); } for (String container : tmp.config.keySet()) { Map<String, Object> value = (Map<String, Object>) evaluateAll(tmp.config.get(container)); tmp.config.put(container, value); } }