Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DvdDataAccess - not used interface

 
Petr Hejl
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've got a question for Andrew. In examples there exist interface DvdDataAccess but it is not used anywhere (even in book). I suppose DVDFileAccess should implement this interface and variable in DVDDatabase should have this type too.

I figure this out before I choose very similar way (before reading book). I have DataSource interface with FileDataSource implementation, that can be decorated or replaced in future (decorator could be CachedDataSource and replacement SQLDataSource for example).

Any comments on this issue and/or my design?

Thanks Petr
[ March 01, 2006: Message edited by: Petr Hejl ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Petr,

That interface is a remnant left over from our original design concept - the concept was discarded midway in our development, but the interface remains. If you look at the comments in the interface, it should be obvious what we were planning to do with it.

The idea is reasonable, however it did not make sense with our particular book and project (we were overcomplicating matters).

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic