Exforsys

Online Training

Query on Facade Pattern

This is a discussion on Query on Facade Pattern within the Software Patterns forums, part of the Testing category; Hi I am using the Facade Pattern to create a web application in Struts. I've got 3 sets of ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-25-2005, 09:11 AM
govind
Guest
 
Posts: n/a
Query on Facade Pattern

Hi

I am using the Facade Pattern to create a web application in Struts.

I've got 3 sets of classes:

Database classes to fetch data from the database

Action Classes to display data on the web interface

Facade class which uses objects of the database classes and gives a set
of functions to the Action Classes.

Should I create the objects of the Database classes directly in the
Facade class or should I use an interface for the Database classes in
the Facade class?
I want to do this so that if I want to use any object of the Database
class directly in the Action Class(through the Facade Class that is...)
then I dont have to access the Database Class Objects directly in the
Action Class.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.