Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuration GUI & suncertify.properties

 
Matt Earl
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me any advice on what they have done for the config GUI/properties part of the assignment.

I have developed a very simple GUI where for each mode you can specify the relevant configuration (i.e. server host/port/db file etc).

PROBLEM: I am unsure how to fit this into my hard-worked MVC framework!

Should this GUI be called in the main method of the app once the mode has been determined, i.e:

if(mode is alone){
do config GUI
do main GUI ...

Or should this be called by the view prior to being made visible?

I currently have an entry class (with main method), which calls my controller object. This controller object then creates a generic connection object, creates a model from the data layer and then the view using that model. I am unsure what is the best design choice regarding the config GUI.

Any ideas?
 
Leszek Zajac
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make it simple.
Show config GUI in main method.
Get all the parameters you need and pass them to controler.
At least that is what I would do.

Best regards
 
Tim Anlauf
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used an enumeration with one variable for each mode.
The mode is set in main method and passed to controller.

For properties file handling I created a seperate class. This class has a constructor with the enum as argument.

All properties are stored mode dependent.

alone.port=
alone.address=
server.port=
server.file=
default.file=

and so on ...
 
Henri Zwolle
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Anlauf:
alone.port=
alone.address=


Check your assignment. You might be going the wrong way.
My assignment says:
The program must be able to work in a non-networked mode. In this mode, the database and GUI must run in the same VM and must perform no networking, must not use loopback networking, and must not involve the serialization of any objects when communicating between the GUI and database elements.

Configuring port and address does not seem like bypassing network mode alltogether.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic