/** * Gets the {@code value}({@link Expression}) for the provided {@code key} * from {@link #original} and returns the result of evaluation using {@link #evaluationCallback}. */ @Override public Object get(Object key) { Object value = this.original.get(key); if (value != null) { Expression expression; if (value instanceof Expression) { expression = (Expression) value; } else if (value instanceof String) { expression = new LiteralExpression((String) value); } else { throw new IllegalArgumentException("Values must be " + "'java.lang.String' or 'org.springframework.expression.Expression'; the value type for key " + key + " is : " + value.getClass()); } return this.evaluationCallback.evaluate(expression); } return null; }
/** * Gets the {@code value}({@link Expression}) for the provided {@code key} * from {@link #original} and returns the result of evaluation using {@link #evaluationCallback}. */ @Override public Object get(Object key) { Object value = this.original.get(key); if (value != null) { Expression expression; if (value instanceof Expression) { expression = (Expression) value; } else if (value instanceof String) { expression = new LiteralExpression((String) value); } else { throw new IllegalArgumentException("Values must be " + "'java.lang.String' or 'org.springframework.expression.Expression'; the value type for key " + key + " is : " + value.getClass()); } return this.evaluationCallback.evaluate(expression); } return null; }