Package org.eweb4j.util.xml

Examples of org.eweb4j.util.xml.XMLReader


      if (filePath == null || filePath.length() == 0)
        continue;

      File configFile = new File(ConfigConstant.CONFIG_BASE_PATH + filePath);
      try {
        XMLReader reader = BeanXMLUtil.getBeanXMLReader(configFile);
        reader.setBeanName("dataSource");
        reader.setClass("dataSource", DBInfoConfigBean.class);
        DBInfoConfigBean dcb = reader.readOne();
        if (dcb == null) {
          error = rebuildXmlFile(configFile,ConfigInfoCons.REPAIR_FILE_INFO);
        } else {
          String error1 = CheckConfigBean.checkORMDBInfo(dcb,filePath);
          if (error1 == null) {
View Full Code Here


      if (filePath == null || filePath.length() == 0)
        continue;

      File configFile = new File(ConfigConstant.CONFIG_BASE_PATH+ filePath);
      try {
        XMLReader reader = BeanXMLUtil.getBeanXMLReader(configFile);
        reader.setBeanName("ioc");
        reader.setClass("ioc", IOCConfigBean.class);
        List<IOCConfigBean> iocList = reader.read();
        if (iocList == null || iocList.isEmpty()) {
          error = rebuildXmlFile(ConfigInfoCons.CANNOT_READ_CONFIG_FILE, configFile);
        } else {
          for (IOCConfigBean ioc : iocList) {
            String error1 = CheckConfigBean.checkIOC(ioc, filePath);
View Full Code Here

TOP

Related Classes of org.eweb4j.util.xml.XMLReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.