From 72c9332b897d4c890ea24c47bcbfb982efc31ca0 Mon Sep 17 00:00:00 2001 From: Jordan Zimmerman Date: Mon, 23 Dec 2019 09:37:47 -0500 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7ee78e6..b82fe03 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,14 @@ Note: records are a preview feature only. You'll need take a number of steps in Note: I've seen some very odd compilation bugs with the current Java 14 and Maven. If you get internal Javac errors I suggest rebuilding with `mvn clean package` and/or `mvn clean install`. +## Customizing + +The names of the generated methods, etc. are determined by `RecordBuilderMetaData`. If you want to use your own meta data instance: + +- Create a class that implements RecordBuilderMetaData +- When compiling, make sure that the compiled class is in the processor path +- Add a "metaDataClass" compiler option with the class name. E.g. `javac ... -AmetaDataClass=foo.bar.MyMetaData` + ## TODOs - Document how to integrate with Gradle