Quantcast
Channel: Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 741

FormatConversionBean - One Bean to rule them all!

$
0
0

Introduction

Over the past months, I have introduced various custom adapter modules that are configurable and reusable; aiming to handle various format conversions to/from XML that are not available in standard adapter modules.

 

I have recently refactored the different modules and consolidated them into a single module, FormatConversionBean. The benefits of this refactoring are:-

  • Single point of entry for the different types of conversion
  • Refactoring of factory class utilizing ConverterFactory allows dynamic instantiation of converters
  • Easily extensible to new converter formats by extending class AbstractModuleConverter
  • Conforms to the Open Close Principle whereby new converters can be added without modification to existing code

 

 

Converter Class List

Below is the comprehensive list of the converter classes that are part of FormatConversionBean now. This list will be updated as and when new converter classes are introduced in the future.

 

Converter ClassSource FormatTarget FormatReference
Excel2XMLTransformerExcelXMLExcelTransformBean Part 1: Convert various Excel formats to simple XML easily
XML2ExcelTransformerXMLExcelExcelTransformBean Part 2: Convert simple XML to various Excel formats easily
DeepPlain2XMLConverterDeep Plain TextXMLDeepFCCBean - The better FCC at meeting your deep (structure) needs! (Part 2 - Flat File to Deep XML)
XML2DeepPlainConverterXMLDeep Plain TextDeepFCCBean - The better FCC at meeting your deep (structure) needs! (Part 1 - Deep XML to Flat File)
JSON2XMLConverterJSONXMLJSONTransformBean Part 1: Converting JSON content to XML
XML2JSONConverterXMLJSONJSONTransformBean Part 2: Converting XML to JSON content

 

 

Source Code

The Java source codes for the module are located in the following GitHub repositories.

GitHub repository for com.equalize.xpi.af.modules

GitHub repository for com.equalize.xpi.util (prerequisite library for com.equalize.xpi.af.modules)

 

The EAR file for deployment (compiled on NWDS 7.31 SP13 Patch 0) is also available from the latest repository release below.

Latest release for repository com.equalize.xpi.af.modules

 

 

Further Reference

If you plan to download the source codes into your own NWDS installation for make changes and/or develop new modules, the following blog would be useful for performing testing in NWDS prior to deployment into the PI system.

Standalone testing of Adapter Module in NWDS


Viewing all articles
Browse latest Browse all 741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>