I am planning to write a generic CSV generator method that would take ObjectList and Map/properties file with all the pojo fields info. The method then has to
create a csv file by iterating through the list of objects and based on the Map/Properties file fetch all the field values(Fields are defined in the Properties file)
for each of object and create csv file at the end.
1. List of Employee Pojo Objects
2. Properties file with some of the fields from Employee pojo say EmpName,EmpID
3. Resultant CSV file :
What i am looking for is some pointers on what is the best way to do it and is there some thing that is readily available opensource that i can use/extend it.I wanted
to follow this approach so that if tomorrow some new fields has to be added i dont have to touch my code just update my properties file and it should work.