コード例 #1
0
  private void createDocument() {
    this.document = DomDocumentHelper.create();

    Node objectConfigNode =
        document.createElement(TransformInfoObjectConfigData.getInstance().NAME);

    this.document.appendChild(objectConfigNode);
  }
  public TransformInfoObjectConfigInterface getInstance(
      TransformInfoInterface transformInfoInterface, AbPath objectConfigFileAbPath)
      throws Exception {
    try {
      String data =
          new CryptFileReader(
                  TransformInfoObjectConfigData.getInstance().UNCRYPTED_EXTENSION,
                  TransformInfoObjectConfigData.getInstance().ENCRYPTED_EXTENSION)
              .get(objectConfigFileAbPath);

      return this.getInstance(transformInfoInterface, DomDocumentHelper.create(data));
    } catch (Exception e) {
      if (abcs.logic.communication.log.config.type.LogConfigTypes.LOGGING.contains(
          abcs.logic.communication.log.config.type.LogConfigType.VIEWERROR)) {
        LogUtil.put(
            LogFactory.getInstance(
                "Could Not Load Object Config", getInstance(), "getInstance()", e));
      }
      throw e;
    }
  }