This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes facade pattern examples? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "facade pattern examples?" Watch "facade pattern examples?" New topic
Author

facade pattern examples?

agape jurose
Greenhorn

Joined: Nov 09, 2012
Posts: 3
im learning about facade pattern and could anyone tell me where do we see examples ? examples using uml ? what are pro and cons ? thanks
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1752
    
    7

It's really quite a simple pattern to grasp and to implement. A Facade provides a simple API that shields its user from the complexities of a more fine grained API, or set of APIs, which are more difficult to use. The advantage is ease of use, because the Facade's API is coarse grained. That is, however, also the main drawback: loss of flexibility / fine grained control over the shielded API(s). Code samples are easy to find using good ol'Google, but the Wikipedia entry does an okay job.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: facade pattern examples?
 
Similar Threads
Client-Side Facades
Doubt about Petstore ������
howto apply design pattern ?
alternate design pattern for Session Facade ?
Confused in Design Patterns