File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes package and implementation design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "package and implementation design" Watch "package and implementation design" New topic
Author

package and implementation design

badari gururaj
Ranch Hand

Joined: Feb 25, 2002
Posts: 63
Hi all
This is an abstract of my inteneded package and implementation designs for FBN assignment.
package suncertify.inter:
DataInterface- an interface declaring all the public methods provided in suncertify.db.Data class
package suncertify.client:
All files related to UI(delegates, model, compnentfactory etc)
DataClient- implementing suncertify.inter.DataInterface
package suncertify.db:
All files provied by Sun
LockManager
SingletonData
package suncertify.server:
RemoteAccess - interface extending Remote and declares a method returning DataServer
RemoteAccessImpl - implements RemoteAccess
RemoteDataAccess - implements suncertify.inter.DataInterface and Remote
DataServer - implements RemoteDataAccess
RemoteAccessServer - Class binds RemoteAccessImpl with the registry

Implementation Design:
DataClient takes the mode as int in its constructor, assigns the DataInterface object with the apporiate Data(local mode) or DataServer(Remote mode) object.
LockManger extends data and takes care of lock and unlock.
SingletonData returns a single instnce of Data and is used by DataServer
RemoteAccessServer binds RemoteAccessImpl to the registry, the method returns an instance of
DataServer
DataServer uses Data class to access the db.db file along with the instances of LockManger and
SingletonData
Comments please.

cheers
badari



SCJP, SCJD, SCBCD, SCEA, IBM 665
badari gururaj
Ranch Hand

Joined: Feb 25, 2002
Posts: 63
just a modification
no more package suncertify.inter
DataInterface goes into suncertify.db
DataClient implements suncertify.db.DataInterface
cheers
badari
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Have you implemented this design yet?
You know it is always tough to decide if someone's design is different, if it is correct, good, etc. I like the thought that you have put into it, and it could work, but it is different than what I did, so I wnat my comments to be geared towards your design, rather than try to make you use the exact same design as mine.
I would like to see your design implemented, and tell us how it works. I think you might be able to seperate some more classes out of your design for decoupling classes. But that will appear to you later as you work on your implementation.
Let us know how it works.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Dasong
Ranch Hand

Joined: Apr 05, 2002
Posts: 36
Hi Mark,
I heard I don't have to download Server_Stub from server side when run client side Application. That means I have to put package suncertify.server.* at client side right?
Dasong
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Yes
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package and implementation design
 
Similar Threads
Design issues
Data Client
Remote/local database design. Please comment this.
posting again...pl help
dumb qn: Classes stored in Remote client