Java Code Examples for com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext#getInstance()
The following examples show how to use
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext#getInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 2
Source File: RuntimeBuiltinLeafInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 3
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 4
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 5
Source File: RuntimeBuiltinLeafInfoImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 6
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 7
Source File: RuntimeBuiltinLeafInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 8
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Class parse(CharSequence text) throws SAXException { TODO.checkSpec("JSR222 Issue #42"); try { String name = WhiteSpaceProcessor.trim(text).toString(); ClassLoader cl = UnmarshallingContext.getInstance().classLoader; if(cl==null) cl = Thread.currentThread().getContextClassLoader(); if(cl!=null) return cl.loadClass(name); else return Class.forName(name); } catch (ClassNotFoundException e) { UnmarshallingContext.getInstance().handleError(e); return null; } }
Example 9
Source File: RuntimeClassInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }
Example 10
Source File: RuntimeClassInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }
Example 11
Source File: Lister.java From hottub with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 12
Source File: Lister.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 13
Source File: RuntimeClassInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }
Example 14
Source File: Lister.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 15
Source File: Lister.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 16
Source File: RuntimeClassInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }
Example 17
Source File: Lister.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 18
Source File: RuntimeClassInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }
Example 19
Source File: Lister.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Pack(BeanT bean, Accessor<BeanT,PropT> acc) { this.bean = bean; this.acc = acc; this.context = UnmarshallingContext.getInstance(); this.location = new LocatorEx.Snapshot(context.getLocator()); context.addPatcher(this); }
Example 20
Source File: RuntimeClassInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public BeanT parse(CharSequence lexical) throws AccessorException, SAXException { UnmarshallingContext ctxt = UnmarshallingContext.getInstance(); BeanT inst; if(ctxt!=null) inst = (BeanT)ctxt.createInstance(ownerClass); else // when this runs for parsing enum constants, // there's no UnmarshallingContext. inst = ClassFactory.create(ownerClass); xacc.parse(inst,lexical); return inst; }