osdep.configuration
Class AutomaticConfigurationChooser

java.lang.Object
  extended by osdep.configuration.AutomaticConfigurationChooser
All Implemented Interfaces:
IConfigurationChooser

public class AutomaticConfigurationChooser
extends java.lang.Object
implements IConfigurationChooser

Chooses the right zip automatically depending by the platform in which it needs to be installed (operating system and architecture)

Author:
SHZ Mar 6, 2008

Constructor Summary
AutomaticConfigurationChooser(ISystemProperties systemProperties)
          Constructor
 
Method Summary
 ConfigurationEntry getConfiguration()
          Returns the chosen configuration
 void setup(java.util.List<ConfigurationEntry> lstEntry)
          set up the chooser with the possible choices
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticConfigurationChooser

public AutomaticConfigurationChooser(ISystemProperties systemProperties)
Constructor

Parameters:
systemProperties - contains the os and the architecture
Method Detail

setup

public void setup(java.util.List<ConfigurationEntry> lstEntry)
Description copied from interface: IConfigurationChooser
set up the chooser with the possible choices

Specified by:
setup in interface IConfigurationChooser
Parameters:
lstEntry - the list of configurations to choose

getConfiguration

public ConfigurationEntry getConfiguration()
Description copied from interface: IConfigurationChooser
Returns the chosen configuration

Specified by:
getConfiguration in interface IConfigurationChooser
Returns:
the configuration that has been chosen