Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

altering DBAccess  RSS feed

 
Laura Williamson
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Doing B&S (...still...) just wondering can I tweak DBAccess interface to implement RMI?

Thanks

L
 
Saheed Adepoju
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Laura Williamson:
Hi,

Doing B&S (...still...) just wondering can I tweak DBAccess interface to implement RMI?

Thanks

L



Hi! I suppose u have read ur instructions very well and read the part of the instructions that says
...and must implement the following interface..
If u wanna use RMI u could use Adapter Design pattern that way u could work around the defiency of the given interface! U could also get Max's book, it totally good and also get Andrew's upcoming book!Cheers
 
Simon Twigg
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uhm...no!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12143
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Laura,

The problem with changing the interface (as opposed to implementing the given interface as mentioned by Saheed) is that it means that any other programs that are coded to the original interface will no longer work.

While Sun have apparently decided against automatic testing of the Data class (for the moment at least), they still have some programs that verify that your Data class does implement the given interface. So any changes could result in an automatic failure.

Regards, Andrew
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!