File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rama Ituarte
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic