gpt4 book ai didi

org.eclipse.persistence.platform.xml.XMLPlatformFactory.getXMLPlatformClass()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 05:13:05 25 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.persistence.platform.xml.XMLPlatformFactory.getXMLPlatformClass()方法的一些代码示例,展示了XMLPlatformFactory.getXMLPlatformClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPlatformFactory.getXMLPlatformClass()方法的具体详情如下:
包路径:org.eclipse.persistence.platform.xml.XMLPlatformFactory
类名称:XMLPlatformFactory
方法名:getXMLPlatformClass

XMLPlatformFactory.getXMLPlatformClass介绍

[英]INTERNAL: Return the implementation class for the XMLPlatform.
[中]内部:返回XMLPlatform的实现类。

代码示例

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
   * 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);
    }
  }
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
   * 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);
    }
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
   * 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);
    }
  }
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com