Class NotEvaluableExpression
- java.lang.Object
-
- com.netflix.spinnaker.kork.expressions.NotEvaluableExpression
-
public class NotEvaluableExpression extends java.lang.ObjectAn instance of this class is used as the return value from thedoNotEvalSpEL helper which makes it possible to skip SpEL evaluation in other SpEL helpers e.g.toJson.For example, in the evaluation context is defined only
fileMapobject:Map<String, Object> fileMap = Collections.singletonMap("owner", "managed-by-${team}");An exception will be thrown in attempt to get JSON because of
fileMapcontains SpEL inside.${#toJson(fileMap)}In the given case
fileMapcontains SpEL for another tool e.g. Terraform. UsedoNotEvalto let Spinnaker know that this SpEL should be evaluated by a different tool. No exceptions are thrown this way.${#toJson(#doNotEval(fileMap))}
-
-
Constructor Summary
Constructors Constructor Description NotEvaluableExpression(java.lang.Object expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetExpression()
-