com.ohrasys.app
Class AbstractApp

java.lang.Object
  extended by com.ohrasys.app.AbstractApp

public class AbstractApp
extends java.lang.Object

An abstract MVC based application framework. A Controller which is responsible for application control between a model and multiple views is instantiated within the application. This controller also is responsible for the overhead of command line argument parsing and dispatching of application events.


Field Summary
protected  AbstractAppController controller
          The controller object for this application
 
Constructor Summary
AbstractApp(AbstractAppController controller)
          Creates a new AbstractApp object.
 
Method Summary
 void run()
          Starts the controller running.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

controller

protected AbstractAppController controller
The controller object for this application

Constructor Detail

AbstractApp

public AbstractApp(AbstractAppController controller)
            throws AppException
Creates a new AbstractApp object.

Parameters:
controller - The controller for this application
Throws:
AppException - If an error in application processing occurs.
Method Detail

run

public void run()
Starts the controller running. This usually is the method that is used to start the application.


toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The physical address of this instance.