Win a copy of Learn Spring Security (video course) this week in the Spring 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
Hi,
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
implementation.
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
SCJP2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic