Package scriptella.configuration
Class ConfigurationFactory
java.lang.Object
scriptella.configuration.ConfigurationFactory
Factory class for ETL
configuration files.- Version:
- 1.0
- Author:
- Fyodor Kupolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses XML file and creates a configuration based on a specified parameters.voidsetExternalParameters(Map<String, ?> externalProperties) Sets additional properties.voidsetExternalParameters(ParametersCallback externalParameters) Sets additional parameters.voidsetResourceURL(URL resourceURL) static voidsetValidating(boolean validating) Sets validation option.
-
Constructor Details
-
ConfigurationFactory
public ConfigurationFactory()
-
-
Method Details
-
setValidating
public static void setValidating(boolean validating) Sets validation option.- Parameters:
validating- true if XML file validation should be performed.
-
getResourceURL
-
setResourceURL
-
setExternalParameters
Sets additional properties.External properties takes precedence over properties specified in ETL <properties> element.
Intended for integration with other systems like ant.
- Parameters:
externalProperties- external properties. Nulls allowed.
-
setExternalParameters
Sets additional parameters.These parameters take precedence over properties specified in the <properties> section of an ETL file.
Intended for integration with other systems like ant.
- Parameters:
externalParameters- external parameters.
-
createConfiguration
Parses XML file and creates a configuration based on a specified parameters.- Returns:
- configuration element.
-