wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Comments on design choice please !!!!!!!!! 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 "Comments on design choice please !!!!!!!!! " Watch "Comments on design choice please !!!!!!!!! " New topic
Author

Comments on design choice please !!!!!!!!!

Rama Ituarte
Ranch Hand

Joined: Apr 10, 2002
Posts: 62
Am requesting you alls opinion on my design choice.
I have a interface called DataIntf which contains all of the public methods of the Data class. I have two classes called LocalManager and RemoteManager which implement this interface. The LocalManager contains an instance of the DataManager class which extends the Data class. The RemoteManager contains an instance of an interface called RemoteDataIntf which extends Remote. I also have a class called RemoteDataImpl which extends UnicastRemoteObject, implements RemoteDataIntf, and the Unreferenced, and has an instance of the DataManager class.
Is this an ok design choice for the assignment?
Please comment.
Than you.
[ April 10, 2002: Message edited by: Rama Ituarte ]
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Can you defend the existence of LocalManager and RemoteManager? What are they for and why can't you do without them?
- Peter
Rama Ituarte
Ranch Hand

Joined: Apr 10, 2002
Posts: 62
Thank you very much for your reply Peter.
What would be another alternative? The classes are there to handle the type of connection that the user wants to have. When I start my server it creates an instance of the RemoteDataImpl class and bind it. Then the RemoteManager looks up the RemoteDataImpl object and gets a reference to one and makes the necessary calls.
Do you think to eliminate the RemoteManager and have the RemoteDataImpl class implement the DataIntf?
Rama
[ April 11, 2002: Message edited by: Rama Ituarte ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comments on design choice please !!!!!!!!!
 
Similar Threads
own interface in Bodgit and Scraper
NX: URLyBird Data class question
Comments on design please !!!
Is this the proxy pattern?
URLyBird's [Version 1.2.3] and network side