Re: Is it a facade



H. S. Lahman wrote:
> Responding to Sanjay...
>
> > 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.
> >
> > Please note that all those API's are independent of each other but in a
> > way help to build an entity. I mean they are loosely coupled.
>
> I think you need to put some more words around the problem that you are
> actually trying to solve. What are the modules? How do they relate to
> subsystems? Who are the clients? What semantics are the APIs accessing?

Actually dont have any particular problem at hand, but will try to put
this as best as I can.

Assume I am looking at a module that does auditing of any existing
application, may be a web application. Auditing, tries to figure out
how long this application is trying to respond to a request, which
server page was requested ...etc. Besides this let us assume that these
applications can also pass few auditing parameters.

The auditing module finally builds an entity that is dumped as an audit
record.
Now this audit record is what every application is interested in and
can build using the classes that are well defined ( _subsystems_ ).
Now we think of giving API's to these exisitng applications ( _clients_
), so that the clients deal with API's that are interfaces taking
simple context information.

These API's are exposed to the clients through an interface called
AuditManager class.

Now would this pattern be a facade pattern? would AuditManager class a
facade.

Now may be I can rewrite my question as above

"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."

>
> FWIW, the name ModuleManager scares me. That sounds suspiciously like a
> god object that exists solely as a convenience in implementing a
> procedural functional decomposition tree. But there is no way to know
> for certain without some clue about what the ModuleManager /is/.
>
>
> *************
> There is nothing wrong with me that could
> not be cured by a capful of Drano.
>
> H. S. Lahman
> hsl@xxxxxxxxxxxxxxxxx
> Pathfinder Solutions -- Put MDA to Work
> http://www.pathfindermda.com
> blog: http://pathfinderpeople.blogs.com/hslahman
> (888)OOA-PATH

Sanjay

.


Quantcast