• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Packaging design

 
Al Guzman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dev guys!
I�ve been checking this forum for a while and finally decide to submit a question; I�m in the final stage of my assignment and a couple of nervous last doubts come to my mind about my design�
It is about the correct use of packaging. I just have two of packages: suncertify.db and suncertify.gui. The gui package depends on the db package to refer custom exceptions (DuplicateKeyException and RecordNotFoundException), my controller (MVC) and other classes. This make me think in too much coupling between classes in different packages.
Do you guys think that maybe could be necessary to have another package that contains the Controller class, the fa�ade and other middle layer components? Any comment?
Maybe is kind of silly� but it�s making me crazy!
Thanks in advance.
CU!
Al
 
Martin Rea
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Al,
What assignment are you doing? I'm doing the Bodgitt & Scarper assignment.
My package structure looks like the following:
suncertify.db
suncertify.controller
suncertify.model
suncertify.notification
suncertify.server
suncertify.view
There are a lot of bindings between my packages - I mean starting up in the controller package which will setup classes from db, model, notification etc.
I'm not too worried about this. I am asked to submit one runtime.jar which I will state should not be unpacked and exploded (I have some dependencies to images and html files in a fixed structure). If this was real life - yes I would try to make deployment diagrams, compiling without dependencies etc. but for this assignment it seems overkill.
 
Al Guzman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Martin, you are right about this, it's not an important issue.
I�m going to put my classes into several packages; having just two of them seems to be a little tied and even unorganized.
Thanks for your time and good lock with the B&S assignment (that�s mine too ).
Al
PS: I knew it was a silly question!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic