File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Real World Example for Builder Patter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Real World Example for Builder Patter" Watch "Real World Example for Builder Patter" New topic
Author

Real World Example for Builder Patter

Nuwan Arambage
Ranch Hand

Joined: May 05, 2010
Posts: 76
I have already understood the concepts behind the builder pattern
But I want to know real word example that uses the builder pattern



Thinker
Nuwan Arambage
Marcin Majewski
Greenhorn

Joined: Dec 20, 2010
Posts: 14

Builder pattern is a good choice when the construction of a particular object is a complex task, and you want to have a controll over each step of this construction process. The real world example could be ie. a creation of a XML file. You can define severial methods to add new nodes, set its subelements, attributes etc..


Check out my site at whizzarts.pl
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

check out this real world example here.


http://muhammadkhojaye.blogspot.com/
 
jQuery in Action, 2nd edition
 
subject: Real World Example for Builder Patter