The Artima Developer Community
Sponsored Link

Java Answers Forum
Query on Facade Pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
govind

Posts: 1
Nickname: govind22
Registered: Sep, 2005

Query on Facade Pattern Posted: Sep 25, 2005 3:11 AM
Reply to this message Reply
Advertisement
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.

Topic: java 2 exe Previous Topic   Next Topic Topic: Where do you get new projects as IT freelancer?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use