Class ExpressionsSupport
- java.lang.Object
-
- com.netflix.spinnaker.kork.expressions.ExpressionsSupport
-
public class ExpressionsSupport extends java.lang.ObjectProvides utility support for SpEL integration Supports registering SpEL functions, ACLs to classes (via allow list)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpressionsSupport.FlowExpressionFunctionProviderstatic classExpressionsSupport.JsonExpressionFunctionProviderstatic classExpressionsSupport.StringExpressionFunctionProvider
-
Constructor Summary
Constructors Constructor Description ExpressionsSupport(java.lang.Class<?>[] extraAllowedReturnTypes, java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders, org.pf4j.PluginManager pluginManager, ExpressionProperties expressionProperties)ExpressionsSupport(java.lang.Class<?> extraAllowedReturnType, ExpressionProperties expressionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.expression.spel.support.StandardEvaluationContextbuildEvaluationContext(java.lang.Object rootObject, boolean allowUnknownKeys)Creates a configured SpEL evaluation contextjava.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider>getExpressionFunctionProviders()
-
-
-
Constructor Detail
-
ExpressionsSupport
public ExpressionsSupport(java.lang.Class<?> extraAllowedReturnType, ExpressionProperties expressionProperties)
-
ExpressionsSupport
public ExpressionsSupport(java.lang.Class<?>[] extraAllowedReturnTypes, java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders, org.pf4j.PluginManager pluginManager, ExpressionProperties expressionProperties)
-
-
Method Detail
-
getExpressionFunctionProviders
public java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> getExpressionFunctionProviders()
-
buildEvaluationContext
public org.springframework.expression.spel.support.StandardEvaluationContext buildEvaluationContext(java.lang.Object rootObject, boolean allowUnknownKeys)Creates a configured SpEL evaluation context- Parameters:
rootObject- the root object to transformallowUnknownKeys- flag to control what helper functions are available- Returns:
- an evaluation context hooked with helper functions and correct ACL via allow list
-
-