• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Packaging design

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic