Klasse Configuration
java.lang.Object
org.apache.torque.generator.configuration.Configuration
The configuration class keeps the complete configuration needed for the
generation process. It is supplied with UnitDescriptors describing the
available units of generation, and can then read the configuration.
After the configuration is read, no new units of generation can be added.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addUnit
(UnitDescriptor unitDescriptor) Adds a unit of generation to the configuration.void
addUnits
(List<UnitDescriptor> unitDescriptors) Adds several units of generation to the configuration.Returns the available configuration handlers.Returns the list of UnitConfigurations.void
read()
Reads the configuration.void
setConfigurationHandlers
(ConfigurationHandlers configurationHandlers) Sets the available configuration handlers.
-
Konstruktordetails
-
Configuration
public Configuration()
-
-
Methodendetails
-
addUnit
Adds a unit of generation to the configuration.- Parameter:
unitDescriptor
- Describes the unit of generation to add, not null.- Löst aus:
NullPointerException
- if unitDescriptor is null.IllegalStateException
- if the configuration has already been read.
-
addUnits
Adds several units of generation to the configuration.- Parameter:
unitDescriptors
- Describes the units of generation to add, not null.- Löst aus:
NullPointerException
- if unitDescriptors is null or the list contains a null entry.IllegalStateException
- if the configuration has already been read.
-
read
Reads the configuration. If aUnitDescriptor
does not provide a loglevel,Loglevel.getCurrentLoglevel()
will be applied (which is the root log level of the provided adapter).- Löst aus:
ConfigurationException
- if an error occurs during reading the configuration.
-
getUnitConfigurations
Returns the list of UnitConfigurations.- Gibt zurück:
- the list of unit configurations, never null.
- Löst aus:
IllegalStateException
- if the configuration was not yet read.
-
getConfigurationHandlers
Returns the available configuration handlers.- Gibt zurück:
- the available configuration handlers, not null.
-
setConfigurationHandlers
Sets the available configuration handlers.- Parameter:
configurationHandlers
- the available configuration handlers, not null.
-