Class BaseBusinessObjectBuilder

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class BaseBusinessObjectBuilder
    extends AbstractBusinessObjectBuilder

    This is an base implementation class which extends from the AbstractBusinessObjectBuilder. It assumes that the input data read from the DataReader is a Map and the business object it needs to populate is a DataObject. This implementation will reuse the DataObject. That is, the DataObject is created in the init() method and it is reused every time the populateDataLoadBusinessObject() method is called. All properties defined in the xpath mapping in the configuration file will be re-populated every time. When the DataObject is passed to the mediator, the mediator should not delete or add new properties to the DataObject. Otherwise, the population of the DataObject may fail if some properties are deleted or the old properties may not get updated if the new properties are added.