Re: Is it a facade




Sanjay skrev:

> Was curious to know if I can *only* call a pattern which gives client
> an abstraction of the subsystems in a single call, a facade or could
> it be possible that a ModuleManager class that provides many API's to
> clients to finally build a Module entity also as Facade.

Remember that we use patterns as communicative short-cut. A Facade is
the popular term given to a particular solution to a particular
problem. The GoF book is sufficiently well-read that when you say,
"Facade," to an OO programmer, he'll probably know that you're talking
about the Facade from GoF, and therefore know that you're trying to
encapsulate a subsystem behind a small number of interfaces.

You can call such subsystem encapsulation anything you like. You can
call it, "ModuleManager." You can call it, "The ominous, freezing,
Plutonic wasteland." But programmers won't know what you're talking
about, and you'll find yourself explaining your design, over-and-over
again, to audiences that will all give rougly the same response:

"Oh, you mean it's a Facade."

..ed

--
www.EdmundKirwan.com - Home of The Fractal Class Composition.

.



Relevant Pages

  • Re: Text terminal rendering design
    ... The idea is that I have the client coordinate the conversion of symbols from its view of the symbols to the terminal-ready version as an extra step in addition to actually telling the subsystem to display a symbol. ... I am referring to giving the client implementation objects rather than facade objects. ...
    (comp.object)
  • Re: Text terminal rendering design
    ... Which is exactly what would happen in your case when the interface ... Every client would have to ... The only alternative you have is to provide a true Facade ... you have to kludge your implementation of the subsystem. ...
    (comp.object)
  • Re: Text terminal rendering design
    ... Which is exactly what would happen in your case when the interface of the implementation object changes. ... But then you need a new object to own the actual responsibility within the subsystem implementation. ... I can pop in a facade in a completely painless manner without being forced to rename or kludge anything. ... Facade to avoid touching the client. ...
    (comp.object)
  • Re: Text terminal rendering design
    ... because the client invokes a method on a particular factory does ... Terminal and SymbolFactory are part of the interface Facade?!? ... API) is a Facade pattern object. ... the subsystem /interface/, not the subsystem itself. ...
    (comp.object)
  • Re: Is it a facade
    ... > classes from the audit record? ... These API's are interfaces for the client system to build the Audit ... >> Now would this pattern be a facade pattern? ... > abstraction in another subsystem. ...
    (comp.object)