public class Configuration extends Object
| Constructor and Description | 
|---|
| Configuration() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addUnit(UnitDescriptor unitDescriptor)Adds a unit of generation to the configuration. | 
| void | addUnits(List<UnitDescriptor> unitDescriptors)Adds several units of generation to the configuration. | 
| ConfigurationHandlers | getConfigurationHandlers()Returns the available configuration handlers. | 
| List<UnitConfiguration> | getUnitConfigurations()Returns the list of UnitConfigurations. | 
| void | read()Reads the configuration. | 
| void | setConfigurationHandlers(ConfigurationHandlers configurationHandlers)Sets the available configuration handlers. | 
public void addUnit(UnitDescriptor unitDescriptor)
unitDescriptor - Describes the unit of generation to add,
         not null.NullPointerException - if unitDescriptor is null.IllegalStateException - if the configuration has already been
          read.public void addUnits(List<UnitDescriptor> unitDescriptors)
unitDescriptors - Describes the units of generation to add,
         not null.NullPointerException - if unitDescriptors is null or the list
          contains a null entry.IllegalStateException - if the configuration has already been
          read.public void read()
          throws ConfigurationException
ConfigurationException - if an error occurs during reading the
          configuration.public List<UnitConfiguration> getUnitConfigurations()
IllegalStateException - if the configuration was not yet read.public ConfigurationHandlers getConfigurationHandlers()
public void setConfigurationHandlers(ConfigurationHandlers configurationHandlers)
configurationHandlers - the available configuration handlers,
        not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.