-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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 making MapAccessor read-only #33222
Conversation
Before we can consider this PR, we'd need to understand the use case. You are talking about alignment but I don't see that as necessary (or inconsistent at the moment). Also, please refrain from doing unrelated changes. All those formatting in the tests should go away. |
Align to `ReflectivePropertyAccessor`
I need
OK, I will revert those changes. |
MapAccessor
MapAccessor
read-only
MapAccessor
read-only
Hi @quaff,
In order to achieve your goal, you'll actually need to make use of SimpleEvaluationContext context = SimpleEvaluationContext
.forPropertyAccessors(new MapAccessor(false), DataBindingPropertyAccessor.forReadOnlyAccess())
.withAssignmentDisabled()
.build(); |
Thanks for your caution. |
Align to
ReflectivePropertyAccessor