Class SpELContext

java.lang.Object
org.springframework.data.mapping.model.SpELContext

public class SpELContext extends Object
Simple factory to create SpelExpressionParser and EvaluationContext instances.
Author:
Oliver Gierke
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpELContext(SpELContext source, org.springframework.beans.factory.BeanFactory factory)
    Copy constructor to create a SpELContext using the given one's PropertyAccessor and SpelExpressionParser as well as the given BeanFactory.
    SpELContext(org.springframework.expression.PropertyAccessor accessor)
    Creates a new SpELContext with the given PropertyAccessor.
    SpELContext(org.springframework.expression.spel.standard.SpelExpressionParser parser, org.springframework.expression.PropertyAccessor accessor)
    Creates a new SpELContext using the given SpelExpressionParser and PropertyAccessor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.expression.EvaluationContext
     
    org.springframework.expression.ExpressionParser
     

    Methods inherited from class java.lang.Object

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

    • SpELContext

      public SpELContext(org.springframework.expression.PropertyAccessor accessor)
      Creates a new SpELContext with the given PropertyAccessor. Defaults the SpelExpressionParser.
      Parameters:
      accessor -
    • SpELContext

      public SpELContext(org.springframework.expression.spel.standard.SpelExpressionParser parser, org.springframework.expression.PropertyAccessor accessor)
      Creates a new SpELContext using the given SpelExpressionParser and PropertyAccessor. Will default the SpelExpressionParser in case the given value for it is null.
      Parameters:
      parser -
      accessor -
    • SpELContext

      public SpELContext(SpELContext source, org.springframework.beans.factory.BeanFactory factory)
      Copy constructor to create a SpELContext using the given one's PropertyAccessor and SpelExpressionParser as well as the given BeanFactory.
      Parameters:
      source -
      factory -
  • Method Details

    • getParser

      public org.springframework.expression.ExpressionParser getParser()
    • getEvaluationContext

      public org.springframework.expression.EvaluationContext getEvaluationContext(Object source)