Class ExpressionsSupport
java.lang.Object
com.netflix.spinnaker.kork.expressions.ExpressionsSupport
Provides utility support for SpEL integration Supports registering SpEL functions, ACLs to
classes (via allow list)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionExpressionsSupport(Class<?>[] extraAllowedReturnTypes, List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders, org.pf4j.PluginManager pluginManager, ExpressionProperties expressionProperties) ExpressionsSupport(Class<?> extraAllowedReturnType, ExpressionProperties expressionProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.spel.support.StandardEvaluationContextbuildEvaluationContext(Object rootObject, boolean allowUnknownKeys) Creates a configured SpEL evaluation contextList<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider>
-
Constructor Details
-
ExpressionsSupport
public ExpressionsSupport(Class<?> extraAllowedReturnType, ExpressionProperties expressionProperties) -
ExpressionsSupport
public ExpressionsSupport(Class<?>[] extraAllowedReturnTypes, List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders, org.pf4j.PluginManager pluginManager, ExpressionProperties expressionProperties)
-
-
Method Details
-
getExpressionFunctionProviders
public List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> getExpressionFunctionProviders() -
buildEvaluationContext
public org.springframework.expression.spel.support.StandardEvaluationContext buildEvaluationContext(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
-