When I use CachedExpressionEvaluator, i need parseContext to influence an expression, so add ParseContext param
Comment From: snicoll
Thanks for the PR. Rather than making an extra method, I am wondering if we couldn't add a protected
method that does the parsing of the expression instead. Would that work if you would override that method with the parser context?
Comment From: Xjzon
the class ExpressionKey
is protected
and the createKey
method is default
. override not work. I think add a method is more More appropriate.
Comment From: Xjzon
Thanks for the PR. Rather than making an extra method, I am wondering if we couldn't add a
protected
method that does the parsing of the expression instead. Would that work if you would override that method with the parser context?
the class ExpressionKey is protected and the createKey method is default. override not work. I think add a method is more More appropriate.
Comment From: snicoll
the class ExpressionKey is protected and the createKey method is default.
Thanks but I am not talking about that. More about a protected method where you could control how parsing is done, something like:
protected Expression parseExpression(String expression)
that you could override to provide the additional context.
Comment From: Xjzon
Thanks but I am not talking about that. More about a protected method where you could control how parsing is done, something like:
java protected Expression parseExpression(String expression)
that you could override to provide the additional context.
Oh, It work
Comment From: Xjzon
I push code again, pls check
Comment From: snicoll
@Xjzon thank you for making your first contribution to Spring Framework.