Skip to content

JAXB2 Value Constructor Plugin

Laurent Schoelens edited this page Aug 29, 2023 · 1 revision

Value Constructor Plugin

Generate two constructors for each generated class, one of which is a default constructor, the other takes an argument for each field in the class and initialises the field with the argument value.

Without this plugin, XJC will not generate any explicit constructors.

Activation

The plugin is activated by the -Xvalue-constructor

Clone this wiki locally