java.lang.Object
org.jooq.util.jaxb.tools.MiniJAXB
This class allows for mashalling / unmarshalling XML content to jOOQ
configuration objects.
With jOOQ 3.12, the JAXB dependency has been removed in favour of this home grown solution. Due to the modularisation that happened with JDK 9+ and the removal of JAXB from the JDK 11+, it is unreasonable to leave the burden of properly configuring transitive JAXB dependency to jOOQ users.
- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
append(T first, T second)
Appends asecond
JAXB annotated object to afirst
one using Maven'scombine.children="append"
semantics.static String
marshal(XMLAppendable object)
static void
marshal(XMLAppendable object, OutputStream out)
static void
marshal(XMLAppendable object, Writer out)
static <T extends XMLAppendable>
Tstatic <T extends XMLAppendable>
Tunmarshal(InputStream in, Class<T> type)
static <T extends XMLAppendable>
Tstatic <T extends XMLAppendable>
T
-
Constructor Details
-
MiniJAXB
public MiniJAXB()
-
-
Method Details
-
marshal
-
marshal
-
marshal
-
unmarshal
-
unmarshal
-
unmarshal
-
unmarshal
-
append
public static <T> T append(T first, T second)Appends asecond
JAXB annotated object to afirst
one using Maven'scombine.children="append"
semantics.- Returns:
- The modified
first
argument.
-