org.jpmml.model.moxy.MOXyJAXBUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmml-model-moxy Show documentation
Show all versions of pmml-model-moxy Show documentation
JPMML class model with EclipseLink MOXy runtime
/*
* Copyright (c) 2021 Villu Ruusmann
*/
package org.jpmml.model.moxy;
import jakarta.xml.bind.JAXBException;
import org.eclipse.persistence.jaxb.JAXBContext;
import org.jpmml.model.JAXBUtil;
public class MOXyJAXBUtil {
private MOXyJAXBUtil(){
}
static
public JAXBContext getContext() throws JAXBException {
try {
return (JAXBContext)JAXBUtil.getContext();
} catch(ClassCastException cce){
throw new IllegalStateException("Not an EclipseLink MOXy runtime", cce);
}
}
}