All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.jersey.json.impl.SupportedJaxbProvider Maven / Gradle / Ivy

There is a newer version: 1.19.4
Show newest version
package com.sun.jersey.json.impl;

/**
* @author Michal Gajdos (michal.gajdos at oracle.com)
*/
public enum SupportedJaxbProvider implements JaxbProvider {

    JAXB_RI("com.sun.xml.bind.v2.runtime.JAXBContextImpl", JaxbRiXmlStructure.class),
    MOXY("org.eclipse.persistence.jaxb.JAXBContext", MoxyXmlStructure.class),
    JAXB_JDK("com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl", JaxbJdkXmlStructure.class);

    private final String jaxbContextClassName;
    private final Class documentStructureClass;

    SupportedJaxbProvider(final String jaxbContextClassName,
                          final Class documentStructureClass) {
        this.jaxbContextClassName = jaxbContextClassName;
        this.documentStructureClass = documentStructureClass;
    }

    @Override
    public Class getDocumentStructureClass() {
        return documentStructureClass;
    }

    @Override
    public String getJaxbContextClassName() {
        return jaxbContextClassName;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy