/** * The method will load the eclipselink metadata model and return the * corresponding JAXBContext */ public static JAXBContext getXmlBindingsModelContext() { if (xmlBindingsModelContext == null) { try { xmlBindingsModelContext = (JAXBContext) JAXBContextFactory.createContext(METADATA_MODEL_PACKAGE,CompilerHelper.class.getClassLoader()); } catch (JAXBException e) { throw org.eclipse.persistence.exceptions.JAXBException.couldNotCreateContextForXmlModel(e); } if (xmlBindingsModelContext == null) { throw org.eclipse.persistence.exceptions.JAXBException.couldNotCreateContextForXmlModel(); } } return xmlBindingsModelContext; }
/** * The method will load the eclipselink metadata model and return the * corresponding JAXBContext */ public static JAXBContext getXmlBindingsModelContext() { if (xmlBindingsModelContext == null) { try { xmlBindingsModelContext = (JAXBContext) JAXBContextFactory.createContext(METADATA_MODEL_PACKAGE,CompilerHelper.class.getClassLoader()); } catch (JAXBException e) { throw org.eclipse.persistence.exceptions.JAXBException.couldNotCreateContextForXmlModel(e); } if (xmlBindingsModelContext == null) { throw org.eclipse.persistence.exceptions.JAXBException.couldNotCreateContextForXmlModel(); } } return xmlBindingsModelContext; }