Polishing.

Adjust grammar. Mention that we use proxies for PropertyValueConverter registration when using method handles.

Original pull request: #4553
See #4536
This commit is contained in:
Mark Paluch
2023-11-13 15:25:13 +01:00
parent fcf3143b79
commit d94aa12363
3 changed files with 74 additions and 66 deletions

View File

@@ -74,6 +74,8 @@ registrar.registerConverter(Person.class, Person::getSsn())
<1> Register a converter for the field identified by its name.
<2> Type safe variant that allows to register a converter and its conversion functions.
This method uses class proxies to determine the property.
Make sure that neither the class nor the accessors are `final` as otherwise this approach doesn't work.
====
WARNING: Dot notation (such as `registerConverter(Person.class, "address.street", …)`) for nagivating across properties into subdocuments is *not* supported when registering converters.