/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }
/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }
/** * INTERNAL: * Return the XMLPlatform based on the toplink.xml.platform System property. * @return an instance of XMLPlatform * @throws XMLPlatformException */ public XMLPlatform getXMLPlatform() throws XMLPlatformException { try { if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ try{ return (XMLPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(getXMLPlatformClass())); }catch (PrivilegedActionException ex){ throw (RuntimeException) ex.getCause(); } }else{ return (XMLPlatform)PrivilegedAccessHelper.newInstanceFromClass(getXMLPlatformClass()); } } catch (IllegalAccessException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } catch (InstantiationException e) { throw XMLPlatformException.xmlPlatformCouldNotInstantiate(getXMLPlatformClass().getName(), e); } } }