- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.openjpa.lib.xml.XMLFactory.getDOMParser()
方法的一些代码示例,展示了XMLFactory.getDOMParser()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLFactory.getDOMParser()
方法的具体详情如下:
包路径:org.apache.openjpa.lib.xml.XMLFactory
类名称:XMLFactory
方法名:getDOMParser
[英]Return a DocumentBuilder with the specified configuration.
[中]返回具有指定配置的DocumentBuilder。
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Return a new DOM Document.
*/
public static Document getDocument() {
return getDOMParser(false, false).newDocument();
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Return a new DOM Document.
*/
public static Document getDocument() {
return getDOMParser(false, false).newDocument();
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Return a new DOM Document.
*/
public static Document getDocument() {
return getDOMParser(false, false).newDocument();
}
代码示例来源:origin: org.apache.openjpa/openjpa-lib
/**
* Return a new DOM Document.
*/
public static Document getDocument() {
return getDOMParser(false, false).newDocument();
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc
public List<String> getDictionaries(InputStream in) {
List<String> result = new ArrayList<String>();
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
Element root = doc.getDocumentElement();
NodeList nodes = root.getElementsByTagName("dictionary");
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
NamedNodeMap attrs = node.getAttributes();
Node dictionary = attrs.getNamedItem("class");
if (dictionary != null) {
result.add(dictionary.getNodeValue());
}
}
} catch (Throwable e) {
if (log.isWarnEnabled()) {
log.error(_loc.get("error-code-parse-error"));
}
} finally {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
return result;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public List<String> getDictionaries(InputStream in) {
List<String> result = new ArrayList<String>();
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
Element root = doc.getDocumentElement();
NodeList nodes = root.getElementsByTagName("dictionary");
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
NamedNodeMap attrs = node.getAttributes();
Node dictionary = attrs.getNamedItem("class");
if (dictionary != null) {
result.add(dictionary.getNodeValue());
}
}
} catch (Throwable e) {
if (log.isWarnEnabled()) {
log.error(_loc.get("error-code-parse-error"));
}
} finally {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
return result;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public List<String> getDictionaries(InputStream in) {
List<String> result = new ArrayList<String>();
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
Element root = doc.getDocumentElement();
NodeList nodes = root.getElementsByTagName("dictionary");
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
NamedNodeMap attrs = node.getAttributes();
Node dictionary = attrs.getNamedItem("class");
if (dictionary != null) {
result.add(dictionary.getNodeValue());
}
}
} catch (Throwable e) {
if (log.isWarnEnabled()) {
log.error(_loc.get("error-code-parse-error"));
}
} finally {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
return result;
}
代码示例来源:origin: org.apache.openjpa/openjpa-jdbc
public List<String> getDictionaries(InputStream in) {
List<String> result = new ArrayList<String>();
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
Element root = doc.getDocumentElement();
NodeList nodes = root.getElementsByTagName("dictionary");
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
NamedNodeMap attrs = node.getAttributes();
Node dictionary = attrs.getNamedItem("class");
if (dictionary != null) {
result.add(dictionary.getNodeValue());
}
}
} catch (Throwable e) {
if (log.isWarnEnabled()) {
log.error(_loc.get("error-code-parse-error"));
}
} finally {
try {
in.close();
} catch (IOException e) {
// ignore
}
}
return result;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
return;
log = dict.conf.getLog(JDBCConfiguration.LOG_JDBC);
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
代码示例来源:origin: org.apache.openjpa/openjpa-jdbc
return;
log = dict.conf.getLog(JDBCConfiguration.LOG_JDBC);
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc
return;
log = dict.conf.getLog(JDBCConfiguration.LOG_JDBC);
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
代码示例来源:origin: org.apache.openejb.patch/openjpa
return;
log = dict.conf.getLog(JDBCConfiguration.LOG_JDBC);
DocumentBuilder builder = XMLFactory.getDOMParser(false, false);
try {
Document doc = builder.parse(in);
本文整理了Java中org.apache.openjpa.lib.xml.XMLFactory.factoryIndex()方法的一些代码示例,展示了XMLFactory.factoryIndex()
本文整理了Java中org.apache.openjpa.lib.xml.XMLFactory.getSAXParser()方法的一些代码示例,展示了XMLFactory.getSAXParser()
本文整理了Java中org.apache.openjpa.lib.xml.XMLFactory.getDOMParser()方法的一些代码示例,展示了XMLFactory.getDOMParser()
我们正在尝试一个简单的用例,使用 JPA 从 Karaf 内的 Camel 路由读取/写入 mysql 数据库。当camel加载包含路由的代码时,这经常/总是导致以下堆栈跟踪: 2013-07-19
我是一名优秀的程序员,十分优秀!