Class ExpressionsSupport

java.lang.Object
com.netflix.spinnaker.kork.expressions.ExpressionsSupport

public class ExpressionsSupport extends Object
Provides utility support for SpEL integration Supports registering SpEL functions, ACLs to classes (via allow list)
  • 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 transform
      allowUnknownKeys - flag to control what helper functions are available
      Returns:
      an evaluation context hooked with helper functions and correct ACL via allow list