From 9a038cf18d6ebd4c68218c20ebc174b779afa7fa Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 29 Apr 2019 14:28:48 +0200 Subject: Make JAXB Objects Immutable and Add Builder Utility - Use Immutable-XJC from https://github.com/sabomichal/immutable-xjc - Update existing JAXB-object manipulations to use the Builder - Remove jaxbMarshallerTest (as it relies on mutable JAXB interfaces) Reason for making JAXB objects immutable: I put JAXB objects in the repository. Depending on the configuration, the repository can be a simple hashmap; in that case I might end up sharing JAXB objects between threads. Immutable shared object should make life a little simpler. --- pom.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 6b27f3b..9c963c9 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,7 @@ 1.1 2.9.3 27.1-jre + 1.5 @@ -96,6 +97,13 @@ org.apache.cxf cxf-codegen-plugin ${cxf.version} + + + com.github.sabomichal + immutable-xjc-plugin + ${immutable-xjc-plugin.version} + + generate-sources @@ -106,8 +114,12 @@ ${project.basedir}/src/main/resources/mzs/app2mzs.wsdl classpath:wsdl/app2mzs.wsdl + + -xjc-immutable + -xjc-imm-builder + - + ${project.basedir}/src/main/resources/zusemsg/app2zuse_p2.wsdl classpath:wsdl/app2zuse_p2.wsdl -- cgit v1.2.3