Facade pattern Topic: Patterns
s.bala subramaniyam, Mar 25, 2001 [replies:8]
What is the Facade pattern?
Is this item
helpful? yes no
Previous votes Yes: 1 No: 0
|
|



 |
Re: facade pattern Topic: Patterns
faisal parwani, Apr 10, 2001
facade pattern is used to give the client a
urified interface.
for example suppose client has to interact with
different independent class to perform several task,
for this , the client has to know and remember about
detail of each and every class , so to avoid this
we introduce a facade ( a class) which aggregate
all the other classes, and provide the simpler function
in it (which internally call the class's orignal method)
so in that case the client has to know only about one
class . and which is easy for him to remember and
use.
by providing facade it does not mean that now client
will not be able to use other classes, if he want he can.
but if he want ease he can use facade .
Is this item
helpful? yes no
Previous votes Yes: 0 No: 0
|
|

 |
 |
 |
Re[2]: Facade pattern Topic: Patterns
Shaun Childers, Aug 30, 2005 [replies:1]
I disagree. JDBC should not be thought of as a facade. The caller making a call using JDBC is very tightly coupled to the JDBC framework due to all of the checked excpetions that must be dealt with.
Hibernate would be good example in terms of a persistence layer as a facade.
Is this item
helpful? yes no
Previous votes Yes: 0 No: 0
|
|

 |
 |
Re: Facade pattern Topic: Patterns
Sheetal Jain, Nov 23, 2008
Facade discusses encapsulating a complex subsystem within a single interface object. This reduces the learning curve necessary to successfully leverage the subsystem. It also promotes decoupling the subsystem from its potentially many clients. On the other hand, if the Facade is the only access point for the subsystem, it will limit the features and flexibility that "power users" may need.
The Facade object should be a fairly simple advocate or facilitator. It should not become an all-knowing oracle or "god" object.
Is this item
helpful? yes no
Previous votes Yes: 0 No: 0
|
|

 |
|
|
 |
|