Class ExpressionsSupport


  • public class ExpressionsSupport
    extends java.lang.Object
    Provides utility support for SpEL integration Supports registering SpEL functions, ACLs to classes (via allow list)
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpressionsSupport​(java.lang.Class<?> extraAllowedReturnType)  
      ExpressionsSupport​(java.lang.Class<?>[] extraAllowedReturnTypes, java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders, org.pf4j.PluginManager pluginManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.expression.spel.support.StandardEvaluationContext buildEvaluationContext​(java.lang.Object rootObject, boolean allowUnknownKeys)
      Creates a configured SpEL evaluation context
      java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> getExpressionFunctionProviders()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpressionsSupport

        public ExpressionsSupport​(java.lang.Class<?> extraAllowedReturnType)
      • ExpressionsSupport

        public ExpressionsSupport​(java.lang.Class<?>[] extraAllowedReturnTypes,
                                  java.util.List<com.netflix.spinnaker.kork.api.expressions.ExpressionFunctionProvider> extraExpressionFunctionProviders,
                                  org.pf4j.PluginManager pluginManager)
    • 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 transform
        allowUnknownKeys - flag to control what helper functions are available
        Returns:
        an evaluation context hooked with helper functions and correct ACL via allow list