This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
SCJP, SCJD, SCBCD, SCEA, IBM 665
Joined: Feb 25, 2002
just a modification no more package suncertify.inter DataInterface goes into suncertify.db DataClient implements suncertify.db.DataInterface cheers badari
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