org.thymeleaf.spring4.expression
Class SpelEvaluationContext

Object
  extended by org.thymeleaf.spring4.expression.SpelEvaluationContext
All Implemented Interfaces:
org.springframework.expression.EvaluationContext

public final class SpelEvaluationContext
extends Object
implements org.springframework.expression.EvaluationContext

The purpose of this class is to serve as a wrapper for a standard-defined StandardEvaluationContext object which will contain every expression-evaluation structure needed except for the expression variables. This avoids initializing the structures in StandardEvaluationContext (some of which involve synchronized blocks) with every SpEL expression evaluation.

Since:
1.1.3
Author:
Guven Demir, Daniel Fernández

Constructor Summary
SpelEvaluationContext(org.springframework.expression.EvaluationContext delegate, Map<String,Object> variables)
           
 
Method Summary
 org.springframework.expression.BeanResolver getBeanResolver()
           
 List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
           
 List<org.springframework.expression.MethodResolver> getMethodResolvers()
           
 org.springframework.expression.OperatorOverloader getOperatorOverloader()
           
 List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
           
 org.springframework.expression.TypedValue getRootObject()
           
 org.springframework.expression.TypeComparator getTypeComparator()
           
 org.springframework.expression.TypeConverter getTypeConverter()
           
 org.springframework.expression.TypeLocator getTypeLocator()
           
 Object lookupVariable(String name)
           
 void setVariable(String name, Object value)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpelEvaluationContext

public SpelEvaluationContext(org.springframework.expression.EvaluationContext delegate,
                             Map<String,Object> variables)
Method Detail

getRootObject

public org.springframework.expression.TypedValue getRootObject()
Specified by:
getRootObject in interface org.springframework.expression.EvaluationContext

getConstructorResolvers

public List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
Specified by:
getConstructorResolvers in interface org.springframework.expression.EvaluationContext

getMethodResolvers

public List<org.springframework.expression.MethodResolver> getMethodResolvers()
Specified by:
getMethodResolvers in interface org.springframework.expression.EvaluationContext

getPropertyAccessors

public List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
Specified by:
getPropertyAccessors in interface org.springframework.expression.EvaluationContext

getTypeLocator

public org.springframework.expression.TypeLocator getTypeLocator()
Specified by:
getTypeLocator in interface org.springframework.expression.EvaluationContext

getTypeConverter

public org.springframework.expression.TypeConverter getTypeConverter()
Specified by:
getTypeConverter in interface org.springframework.expression.EvaluationContext

getTypeComparator

public org.springframework.expression.TypeComparator getTypeComparator()
Specified by:
getTypeComparator in interface org.springframework.expression.EvaluationContext

getOperatorOverloader

public org.springframework.expression.OperatorOverloader getOperatorOverloader()
Specified by:
getOperatorOverloader in interface org.springframework.expression.EvaluationContext

getBeanResolver

public org.springframework.expression.BeanResolver getBeanResolver()
Specified by:
getBeanResolver in interface org.springframework.expression.EvaluationContext

setVariable

public void setVariable(String name,
                        Object value)
Specified by:
setVariable in interface org.springframework.expression.EvaluationContext

lookupVariable

public Object lookupVariable(String name)
Specified by:
lookupVariable in interface org.springframework.expression.EvaluationContext


Copyright © 2013 The THYMELEAF team. All Rights Reserved.