New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom expression parsing in CachedExpressionEvaluator #27604
Add support for custom expression parsing in CachedExpressionEvaluator #27604
Conversation
756aaa2
to
145e9b8
Compare
Thanks for the PR. Rather than making an extra method, I am wondering if we couldn't add a |
the class |
the class ExpressionKey is protected and the createKey method is default. override not work. I think add a method is more More appropriate. |
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. |
Oh, It work |
8ad7a62
to
5c3bbe3
Compare
5c3bbe3
to
acfc7bb
Compare
I push code again, pls check |
@Xjzon thank you for making your first contribution to Spring Framework. |
When I use CachedExpressionEvaluator, i need parseContext to influence an expression, so add ParseContext param