Home  /  Questions  /  Question

May 19, 2015

Which pattern I should Use


In our application users may upload different type of files in ftp folder. All these files will be CSV file but the format (number of columns, purpose, order etc.) could be different. For each type there will be seperate folder. So from folder name we may easily recognise which format is applciable for that file. For each file, we need to read the file and validate some records and need to take some specific action against those records. At this moment we have 14 type of files. But in near future it may increase.

Which pattern I should use to design this solution and why? Is it Factory method?


50   50
Jun 25, 2015
Template Pattern.