@@ -138,7 +138,7 @@ public void setExpressionParser(ExpressionParser expressionParser) {
138
138
139
139
@ Override
140
140
@ Nullable
141
- public Object evaluate (@ Nullable String value , BeanExpressionContext evalContext ) throws BeansException {
141
+ public Object evaluate (@ Nullable String value , BeanExpressionContext beanExpressionContext ) throws BeansException {
142
142
if (!StringUtils .hasLength (value )) {
143
143
return value ;
144
144
}
@@ -148,21 +148,21 @@ public Object evaluate(@Nullable String value, BeanExpressionContext evalContext
148
148
expr = this .expressionParser .parseExpression (value , this .beanExpressionParserContext );
149
149
this .expressionCache .put (value , expr );
150
150
}
151
- StandardEvaluationContext sec = this .evaluationCache .get (evalContext );
151
+ StandardEvaluationContext sec = this .evaluationCache .get (beanExpressionContext );
152
152
if (sec == null ) {
153
- sec = new StandardEvaluationContext (evalContext );
153
+ sec = new StandardEvaluationContext (beanExpressionContext );
154
154
sec .addPropertyAccessor (new BeanExpressionContextAccessor ());
155
155
sec .addPropertyAccessor (new BeanFactoryAccessor ());
156
156
sec .addPropertyAccessor (new MapAccessor ());
157
157
sec .addPropertyAccessor (new EnvironmentAccessor ());
158
- sec .setBeanResolver (new BeanFactoryResolver (evalContext .getBeanFactory ()));
159
- sec .setTypeLocator (new StandardTypeLocator (evalContext .getBeanFactory ().getBeanClassLoader ()));
158
+ sec .setBeanResolver (new BeanFactoryResolver (beanExpressionContext .getBeanFactory ()));
159
+ sec .setTypeLocator (new StandardTypeLocator (beanExpressionContext .getBeanFactory ().getBeanClassLoader ()));
160
160
sec .setTypeConverter (new StandardTypeConverter (() -> {
161
- ConversionService cs = evalContext .getBeanFactory ().getConversionService ();
161
+ ConversionService cs = beanExpressionContext .getBeanFactory ().getConversionService ();
162
162
return (cs != null ? cs : DefaultConversionService .getSharedInstance ());
163
163
}));
164
164
customizeEvaluationContext (sec );
165
- this .evaluationCache .put (evalContext , sec );
165
+ this .evaluationCache .put (beanExpressionContext , sec );
166
166
}
167
167
return expr .getValue (sec );
168
168
}
0 commit comments