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.
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.