Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please advice regarding my design.

jay denzel
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started with my assignment and would like
your opinion on my overall design before I start
the implementation.
I figured out something like this to solve the
I have a class called FBNDatabaseImpl which implements
the FBNDatabaseRemote interface, this interface extends
Remote and DataClient which contains all public methods
of the Data class. I have a DataWrapper class which implements
the DataClient interface and holds a reference to the Data class.
My ConnectionFactory class returns either a DataClient instance
(remote) or a DataWrapper class (local) depending on the
chosen connection mode by the user.
But where to implement the locking, directly in the Data class?
I am not sure?
Thanks for your comments in advance.
Best of luck...
Jay Denzel
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic