Java XML JAXB Context getJaxbContext(Class... classes)

Here you can find the source of getJaxbContext(Class... classes)

Description

get Jaxb Context

License

Apache License

Declaration

public static JAXBContext getJaxbContext(Class... classes) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;

public class Main {
    public static JAXBContext getJaxbContext(Class... classes) {
        try {//from   w w  w.j av a  2 s .c om
            return JAXBContext.newInstance(classes);
        } catch (JAXBException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
}

Related

  1. getContextFor(final Class clazz)
  2. getContextForNamespace(String namespace)
  3. getContextPath(Class... classes)
  4. getCustomContext()
  5. getCustomIdentityJAXBContext()
  6. getJaxbContext(Class... classTypes)
  7. getJAXBContext(Class clazz)
  8. getJAXBContext(Class clazz)
  9. getJaxbContext(Class clazz)