patrodyne / hisrc-basicjaxb

XJC plugins and tools for JAXB.
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

Add ValueConstructorPlugin for generating constructors. #4

Closed GijsCalis closed 1 year ago

GijsCalis commented 1 year ago

First of all thank you for your work on the Jaxb projects. It's been a real help in migrating our code to Java 17 and Jaxb 4.

As our code relies on the venerable ValueConstructorPlugin from the original Java EE jaxb2-commons project, I thought I'd propose to integrate it into your project. The original maven package still works, but the old age might withhold developers from using this plugin.

I kept the original copyright and added a unit test. I'm not sure this is the preferred method of unit testing a plugin, but I wasn't able to figure out how to do it otherwise. (Dipping my toes in this code has really reconfirmed form me that Jaxb and xjc is not for the faint of heart :-) )