本文整理了Java中javax.xml.xpath.XPathFactoryFinder.createInstance()
方法的一些代码示例,展示了XPathFactoryFinder.createInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathFactoryFinder.createInstance()
方法的具体详情如下:
包路径:javax.xml.xpath.XPathFactoryFinder
类名称:XPathFactoryFinder
方法名:createInstance
[英]Creates an instance of the specified and returns it.
[中]创建指定的实例并返回它。
代码示例来源:origin: robovm/robovm
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: robovm/robovm
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: robovm/robovm
if (r != null && r.length() > 0) {
if (debug) debugPrintln("The value is '"+r+"'");
xpf = createInstance(r);
if(xpf!=null) return xpf;
} else if (debug) {
xpf = createInstance(factoryClassName);
if(xpf != null){
return xpf;
return createInstance("org.apache.xpath.jaxp.XPathFactoryImpl");
代码示例来源:origin: javax.xml.parsers/jaxp-api
/**
* Looks up a value in a property file
* while producing all sorts of debug messages.
*
* @return null
* if there was an error.
*/
private XPathFactory loadFromProperty( String keyName, String resourceName, InputStream in )
throws IOException {
debugPrintln("Reading "+resourceName );
Properties props = new Properties();
props.load(in);
in.close();
String factoryClassName = props.getProperty(keyName);
if(factoryClassName != null){
debugPrintln("found "+keyName+" = " + factoryClassName);
return createInstance(factoryClassName);
} else {
debugPrintln(keyName+" is not in the property file");
return null;
}
}
代码示例来源:origin: org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4
XPathFactory foundFactory = (XPathFactory) createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: com.bugvm/bugvm-rt
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: MobiVM/robovm
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: ibinti/bugvm
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: FlexoVM/flexovm
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: com.gluonhq/robovm-rt
XPathFactory foundFactory = createInstance(factoryClassName);
if (foundFactory.isObjectModelSupported(uri)) {
resultFactory = foundFactory;
代码示例来源:origin: ibinti/bugvm
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: MobiVM/robovm
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: com.bugvm/bugvm-rt
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: com.gluonhq/robovm-rt
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: FlexoVM/flexovm
classLoader = Thread.currentThread().getContextClassLoader();
XPathFactory xpathFactory = new XPathFactoryFinder(classLoader).createInstance(factoryClassName);
if (xpathFactory == null || !xpathFactory.isObjectModelSupported(uri)) {
throw new XPathFactoryConfigurationException(
代码示例来源:origin: ibinti/bugvm
if (r != null && r.length() > 0) {
if (debug) debugPrintln("The value is '"+r+"'");
xpf = createInstance(r);
if(xpf!=null) return xpf;
} else if (debug) {
xpf = createInstance(factoryClassName);
if(xpf != null){
return xpf;
return createInstance("org.apache.xpath.jaxp.XPathFactoryImpl");
代码示例来源:origin: MobiVM/robovm
if (r != null && r.length() > 0) {
if (debug) debugPrintln("The value is '"+r+"'");
xpf = createInstance(r);
if(xpf!=null) return xpf;
} else if (debug) {
xpf = createInstance(factoryClassName);
if(xpf != null){
return xpf;
return createInstance("org.apache.xpath.jaxp.XPathFactoryImpl");
代码示例来源:origin: javax.xml.parsers/jaxp-api
if(r!=null) {
debugPrintln("The value is '"+r+"'");
xpathFactory = createInstance(r);
if(xpathFactory != null) return xpathFactory;
} else
xpathFactory = createInstance(factoryClassName);
if(xpathFactory != null){
return xpathFactory;
return createInstance("com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl");
内容来源于网络,如有侵权,请联系作者删除!