本文整理了Java中org.milyn.container.ApplicationContext.getClassLoader()
方法的一些代码示例,展示了ApplicationContext.getClassLoader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ApplicationContext.getClassLoader()
方法的具体详情如下:
包路径:org.milyn.container.ApplicationContext
类名称:ApplicationContext
方法名:getClassLoader
[英]Get the ClassLoader to be used by the associated Smooks instance
[中]获取关联的Smooks实例要使用的类加载器
代码示例来源:origin: org.virtuslab/milyn-smooks-core
public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException {
SmooksResourceConfigurationList configList;
if(baseURI == null || baseURI.trim().equals("")) {
throw new IllegalArgumentException("null or empty 'name' arg in method call.");
}
if(resourceConfigStream == null) {
throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call.");
}
configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader());
addSmooksResourceConfigurationList(configList);
return configList;
}
代码示例来源:origin: org.milyn/milyn-smooks-all
/**
* Register the set of resources specified in the supplied XML configuration
* stream.
* @param baseURI The base URI to be associated with the configuration stream.
* @param resourceConfigStream XML resource configuration stream.
* @return The SmooksResourceConfigurationList created from the added resource configuration.
* @throws SAXException Error parsing the resource stream.
* @throws IOException Error reading resource stream.
* @see SmooksResourceConfiguration
*/
public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException {
SmooksResourceConfigurationList configList;
if(baseURI == null || baseURI.trim().equals("")) {
throw new IllegalArgumentException("null or empty 'name' arg in method call.");
}
if(resourceConfigStream == null) {
throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call.");
}
configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader());
addSmooksResourceConfigurationList(configList);
return configList;
}
代码示例来源:origin: org.milyn/milyn-smooks-core
/**
* Register the set of resources specified in the supplied XML configuration
* stream.
* @param baseURI The base URI to be associated with the configuration stream.
* @param resourceConfigStream XML resource configuration stream.
* @return The SmooksResourceConfigurationList created from the added resource configuration.
* @throws SAXException Error parsing the resource stream.
* @throws IOException Error reading resource stream.
* @see SmooksResourceConfiguration
*/
public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException {
SmooksResourceConfigurationList configList;
if(baseURI == null || baseURI.trim().equals("")) {
throw new IllegalArgumentException("null or empty 'name' arg in method call.");
}
if(resourceConfigStream == null) {
throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call.");
}
configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader());
addSmooksResourceConfigurationList(configList);
return configList;
}
代码示例来源:origin: smooks/smooks
/**
* Register the set of resources specified in the supplied XML configuration
* stream.
* @param baseURI The base URI to be associated with the configuration stream.
* @param resourceConfigStream XML resource configuration stream.
* @return The SmooksResourceConfigurationList created from the added resource configuration.
* @throws SAXException Error parsing the resource stream.
* @throws IOException Error reading resource stream.
* @see SmooksResourceConfiguration
*/
public SmooksResourceConfigurationList registerResources(String baseURI, InputStream resourceConfigStream) throws SAXException, IOException, URISyntaxException {
SmooksResourceConfigurationList configList;
if(baseURI == null || baseURI.trim().equals("")) {
throw new IllegalArgumentException("null or empty 'name' arg in method call.");
}
if(resourceConfigStream == null) {
throw new IllegalArgumentException("null 'resourceConfigStream' arg in method call.");
}
configList = XMLConfigDigester.digestConfig(resourceConfigStream, baseURI, applicationContext.getClassLoader());
addSmooksResourceConfigurationList(configList);
return configList;
}
内容来源于网络,如有侵权,请联系作者删除!