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.
| Constructor and Description |
|---|
BaseBusinessObjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize the business object builder.
|
close, endProcess, execute, getConfigProperties, initConfig, postProcess, preProcess, setConfigPropertiespublic void init()
throws DataLoadException
Initialize the business object builder.
init in interface BusinessObjectBuilderinit in class AbstractBusinessObjectBuilderDataLoadException - An application exception will be thrown if there was a problem initializing the business object builder.