use of com.qlangtech.tis.component.GlobalComponent in project tis by qlangtech.
the class TIS method loadGlobalComponent.
public GlobalComponent loadGlobalComponent() {
if (globalComponent == null) {
try {
File globalConfig = getGlobalConfigFile();
if (!globalConfig.exists()) {
// 不存在的话
return new GlobalComponent();
}
globalComponent = (GlobalComponent) (new XmlFile(globalConfig).read());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return globalComponent;
}
Aggregations