tom.platform
Class ConfigurationManager

java.lang.Object
  extended by tom.platform.ConfigurationManager

public class ConfigurationManager
extends Object

This class is a wrapper for the platform XML configuration files. It extracts the plugins information and create an ordered list of of instances. Extracts the Option Management information and based on it create and initialize the corresponding OptionManager. The instantiation of a Configuration is not sufficient since it need to be initialized with an execution commandLine.


Constructor Summary
ConfigurationManager(String xmlConfigurationFileName)
          Basic Constructor constructing a configurationManager that needs to be initialized
 
Method Summary
 OptionManager getOptionManager()
          Accessor method
 List<Plugin> getPluginsList()
          Accessor method
 int initialize(String[] commandLine)
          initialize analyse the XML file and extract plugins and option management
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationManager

public ConfigurationManager(String xmlConfigurationFileName)
Basic Constructor constructing a configurationManager that needs to be initialized

Method Detail

initialize

public int initialize(String[] commandLine)
initialize analyse the XML file and extract plugins and option management

Returns:
an error code :
  • 0 if no error was encountered
  • 1 if something went wrong

getPluginsList

public List<Plugin> getPluginsList()
Accessor method


getOptionManager

public OptionManager getOptionManager()
Accessor method