Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need an opinion about design choices

 
Eduardo Resende
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I�ve just finished the design of my FBN application, i want to hear some opinion about it. First i've implemented a DataAccess interface, that has all public methods of Data (except for lock() and unlock()) and throws DatabaseException and RemoteException, then i modified the Data class, implementing DataAccess and removing the lock classes. After that i've created a RemoteDataAccess interface that extends DataAccess and implements Remote, i just added the lock methods on it. Finally i created the RemoteDataServer class, that implements RemoteDataAccess and extends UnicastRemoteObject, where i have instantiated a Data object delegating the methods to it with the lock proccess. I've created a LockManager class to handle it.
Sounds confusing but it's working... (i hope!)
Opinions are welcome...
att
Eduardo Resende
 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it looks good to me
 
khad M
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. After that i've created a RemoteDataAccess interface that extends DataAccess and implements Remote,

Hai Reshma and Eduarddo I want ur attention for the above point.......!!!
A interface can extend any number of Interfaces.
But an Interface should not implement another Interface
Have a nice time

Regards
Khad M
SCJP2.0
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic