tom.platform
Class PluginPlatform

java.lang.Object
  extended by tom.platform.PluginPlatformBase
      extended by tom.platform.PluginPlatform
All Implemented Interfaces:
Runnable

public class PluginPlatform
extends PluginPlatformBase
implements Runnable

The PluginPlatform manages plugins defined in an xml configuration file. (which plugins are used and how they are ordered) with the intermediate of a ConfigurationManager objet Its main role is to run the plugins in the specified order and make some error management.


Field Summary
static String FORMATTER
           
static String LOG_FILE
           
 
Constructor Summary
PluginPlatform(List<Plugin> pluginsList, String loggerRadical, List<String> inputToCompileList)
          Class Pluginplatform constructor
PluginPlatform(List<Plugin> pluginsList, String loggerRadical, List<String> inputToCompileList, Map<String,String> informationTracker)
           
 
Method Summary
 RuntimeAlert getAlertForInput(String filePath)
           
static String getCurrentFileName()
           
 List<Object> getLastGeneratedObjects()
          return the list of last generated objects
 int getRunResult()
           
 StatusHandler getStatusHandler()
          An accessor method
 TestHandler getTestHandler()
          An accessor method
 void run()
          The main method which runs the PluginPlatform.
 
Methods inherited from class tom.platform.PluginPlatformBase
clearGlobalStatusHandler, getGlobalStatusHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMATTER

public static final String FORMATTER
See Also:
Constant Field Values

LOG_FILE

public static final String LOG_FILE
See Also:
Constant Field Values
Constructor Detail

PluginPlatform

public PluginPlatform(List<Plugin> pluginsList,
                      String loggerRadical,
                      List<String> inputToCompileList)
Class Pluginplatform constructor


PluginPlatform

public PluginPlatform(List<Plugin> pluginsList,
                      String loggerRadical,
                      List<String> inputToCompileList,
                      Map<String,String> informationTracker)
Method Detail

run

public void run()
The main method which runs the PluginPlatform.

Specified by:
run in interface Runnable

getStatusHandler

public StatusHandler getStatusHandler()
An accessor method

Returns:
the status handler.

getTestHandler

public TestHandler getTestHandler()
An accessor method

Returns:
the test handler.

getLastGeneratedObjects

public List<Object> getLastGeneratedObjects()
return the list of last generated objects


getAlertForInput

public RuntimeAlert getAlertForInput(String filePath)

getCurrentFileName

public static String getCurrentFileName()

getRunResult

public int getRunResult()