This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to build domain objects based on different products returned back in a web service response. Currently 4 products are being returned but it might grow to be 20 something in the future. I want to use design patterns to make the design flexible and strong. Is there anything out there I can use?
For you Factory Pattern would be good. As i understood the problem based on the output received from web service objectType. you will be creating some new Domains.
Now the type of objects main increase Hence you may have to create new Domains. So Factory pattern would be good.