Kettle 组件加载 2010 年11 月 廖 佳北京邮电大学计算机学院 TSEG jliao422@gmail
根据配置文件加载组件信息 1
方法入口 1
Spoon 类 main() 调用 initPlugins() 1
Spoon 类 initPlu gins() //初始化 Step 加载器 try { StepLoader
init(); } catch (KettleException e) { throw new KettleException(Messages
getString ("Spoon
ErrorLoadingAndHaltSystem"), e); } //初始化 JobEntry 加载器 try { JobEntryLoader
init(); } catch (KettleException e) { throw new KettleException ("Error loading job entries & plugins
halting Spoon
", e); } 1
Steps 加载 1
StepLoader 类init() StepLoader loader = getInstance(pluginDirectory); //加载Kettle中steps loader
readNatives(); loader
readPlugins(); 1
StepLoader 类ReadNativ es () //从BaseStep 类steps 变量获取每个 step 信息并加入 plu ginList(List类型) for (int i = 0; i < BaseStep
length; i++) { StepPluginMeta