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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tappend(T first, T second) Appends asecondJAXB annotated object to afirstone using Maven'scombine.children="append"semantics.static Stringmarshal(XMLAppendable object) static voidmarshal(XMLAppendable object, OutputStream out) static voidmarshal(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 asecondJAXB annotated object to afirstone using Maven'scombine.children="append"semantics.- Returns:
- The modified
firstargument.
-