Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facade pattern

 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have being going through the post, and some people have tried or implemented facade pattern for the client gui. i went and read through the design patterns book and got the idea for facade pattern. I feel that its an interesting prospect to implement Facade Pattern for the clinet GUI part.
But can anyone tell me as to what have they done to implement that. i mean some design idea.
so that i can have a start at that
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well we know we have an interface that has all the public methods of the Data class, so we could make a class that takes an instance of this interface in it's constructor. Then we can make really nice methods that calls the interface methods to do our "Booking", "Searching", et al. So now all the client needs is an instance of this new class, which will have a reference to an interface, which might end up being either local or remote mode. But the client never has to know this.
Hope that leads you down the path.
Mark
 
Siddharth Mehrotra
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi mark,
Thanks buddy, I had to wait very long for some sight on this matter.
I just need one last favour from you.
i have posted my design also on this board.
I would like to have some reviews from you on it.
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=25&t=002165

It will be a great help.
Thanking you in anticipation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic