This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

design pattern for Strings to Objects

 
manu chaox
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am looking for a design pattern for a situation where I have to create a Widget(DateBox, Label,...) according to a configuration Strings as a input parameter. In the configuration strings there are information about type of widget, size etc.
Do you know a suitable design pattern for this purpose ?

Thank you for a help.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Factory Method or Abstract Factory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic