Lines Matching refs:JAXBContext

46 import static javax.xml.bind.JAXBContext.JAXB_CONTEXT_FACTORY;
56 * @see JAXBContext
102 * Determine if two types (JAXBContext in this case) will generate a ClassCastException.
116 // we don't care where the impl class is, we want to know where JAXBContext lives in the impl
118 originalType.getClassLoader().getResource("javax/xml/bind/JAXBContext.class"),
125 static JAXBContext newInstance( String contextPath,
152 static JAXBContext newInstance( String contextPath,
162 * returns a javax.xml.JAXBContext.
185 if(!(context instanceof JAXBContext)) {
187 throw handleClassCastException(context.getClass(), JAXBContext.class);
189 return (JAXBContext)context;
218 static JAXBContext newInstance(
238 static JAXBContext newInstance(Class[] classes,
249 if(!(context instanceof JAXBContext)) {
251 throw handleClassCastException(context.getClass(), JAXBContext.class);
253 return (JAXBContext)context;
267 static JAXBContext find(String factoryId, String contextPath, ClassLoader classLoader, Map properties ) throws JAXBException {
271 final String jaxbContextFQCN = JAXBContext.class.getName();
303 // search for a system property second (javax.xml.bind.JAXBContext)
304 factoryClassName = AccessController.doPrivileged(new GetPropertyAction(JAXBContext.JAXB_CONTEXT_FACTORY));
315 Class factory = lookupUsingOSGiServiceLoader("javax.xml.bind.JAXBContext");
350 static JAXBContext find( Class[] classes, Map properties ) throws JAXBException {
352 final String jaxbContextFQCN = JAXBContext.class.getName();
392 // search for a system property second (javax.xml.bind.JAXBContext)
393 logger.log(Level.FINE, "Checking system property {0}", JAXBContext.JAXB_CONTEXT_FACTORY);
394 factoryClassName = AccessController.doPrivileged(new GetPropertyAction(JAXBContext.JAXB_CONTEXT_FACTORY));
410 Class factory = lookupUsingOSGiServiceLoader("javax.xml.bind.JAXBContext");
532 * However, rt.jar cannot have META-INF/services/javax.xml.bind.JAXBContext