edu.uoc.pfc.j2ee.jalonsod.mtp.helper
Class ModelRunner

java.lang.Object
  extended by edu.uoc.pfc.j2ee.jalonsod.mtp.helper.ModelRunner

public class ModelRunner
extends java.lang.Object

File: ModelRunner.java Created: 2012-04-28 Executes the model supplied by application and records the result.

Author:
José Alonso de Motta

Field Summary
private static java.util.logging.Logger logger
           
 
Constructor Summary
ModelRunner()
           
 
Method Summary
 void run(RequestDataPrivate requestData)
          Runs the model instance stored in the requestData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final java.util.logging.Logger logger
Constructor Detail

ModelRunner

public ModelRunner()
Method Detail

run

public void run(RequestDataPrivate requestData)
         throws MTPException
Runs the model instance stored in the requestData. The model instance run method can be of two forms: 1. With the requestData as a parameter 2. Without any parameters.

Parameters:
requestData - the MTP requestData of the current request.
Throws:
MTPException - throws when there is any problem running the application model.