File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Please advice regarding my design. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Please advice regarding my design." Watch "Please advice regarding my design." New topic

Please advice regarding my design.

jay denzel
Ranch Hand

Joined: Sep 18, 2002
Posts: 57
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
I agree. Here's the link:
subject: Please advice regarding my design.
It's not a secret anymore!