aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes FBN confusing about design choice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "FBN confusing about design choice" Watch "FBN confusing about design choice" New topic
Author

FBN confusing about design choice

mao lao
Greenhorn

Joined: Nov 26, 2002
Posts: 26
hello, everyone:
I know this question has already been discussed, but cannot find it.
the assignmnet says :
This implementation should include a class that implements the same public mehthods as the Data class

I am not sure what is this mean.
At first I thought the structure like this

so client only need handle facade, know nothing about the data class
but after read carefully about this specification, I am confused.
do I need a class in the client side that implements all the method of the DataInterface so every method connect the server through the network,

or just DataInterface on the client side like this?

It looks like most people choose the last choice(in various ways)
thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Mao,
The way I interpreted those instructions was that I had to be able to call the same methods as in the Data class from within the code on the client side.
So I had code (somewhere) on my client side something like:

(Obviously not real code, but hopefully you get my point).
My class that had this code was the same location as your FBNFacade. Although I did not have a facade. I had a factory that returned either a local or a remote connection to the DB.
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
mao lao
Greenhorn

Joined: Nov 26, 2002
Posts: 26
so it is the third one
Thank you
mao lao
Greenhorn

Joined: Nov 26, 2002
Posts: 26
by the way, any comments about my structure?
Thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Mao
Your structure looks pretty good.
It appears you have no link between your Model and your View. Is this intentional?
Regards, Andrew
mao lao
Greenhorn

Joined: Nov 26, 2002
Posts: 26
Thanks, Andrew
yes, it should be a link there, I forgot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FBN confusing about design choice