osworkflow源码分析(一)
2008-01-05 18:33:56 来源:WEB开发网核心提示:理解osworkflow.xml:加载osworkflow.xml过程:1)DefaultConfiguration中,在load方法中调用getInputStream()以获取系统的osworkflow.xml文件在getInputStream方法中: PRotected InputStream getInputS
理解osworkflow.xml:
加载osworkflow.xml过程:
1)DefaultConfiguration中,在load方法中调用getInputStream()以获取系统的osworkflow.xml文件
在getInputStream方法中:
PRotected InputStream getInputStream(URL url) {
InputStream is = null;
if (url != null) {
try {
is = url.openStream();
} catch (Exception ex) {
}
}
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if (is == null) {
try {
is = classLoader.getResourceAsStream("osworkflow.xml");
} catch (Exception e) {
}
}
if (is == null) {
try {
is = classLoader.getResourceAsStream("/osworkflow.xml");
} catch (Exception e) {
}
}
Tags:osworkflow 源码 分析
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接