public abstract class ScriptFactory extends ParameterStore
Interface for a class which builds an ExecutableScript, and provides the built
result, ready to run.
Any implementing class must provide a default (empty) constructor. Properties will be
provided after construction and can be accessed via ParameterStore.getIntValue(String),
ParameterStore.getIntValue(String, int), ParameterStore.getLongValue(String),
ParameterStore.getLongValue(String, long), ParameterStore.getDoubleValue(String),
ParameterStore.getDoubleValue(String, double), ParameterStore.getStringValue(String) and
ParameterStore.getStringValue(String, String).
ParameterStore.ParameterException| Constructor and Description |
|---|
ScriptFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract ExecutableScript |
buildScript()
Call to have the factory build the respective execution script.
|
getBoolValue, getBoolValue, getDoubleValue, getDoubleValue, getIntValue, getIntValue, getLongValue, getLongValue, getPossibleParameters, getStringValue, getStringValue, parsePropertiespublic abstract ExecutableScript buildScript()
SequentialScriptBuilder or a ParallelScriptBuilder. Or it may
be doing a more complicated combination as such. In the end,
AbstractScriptBuilder.build() should be invoked, and that result returned here.
During script construction parameters can be accessed via ParameterStore.getIntValue(String),
ParameterStore.getIntValue(String, int), ParameterStore.getLongValue(String),
ParameterStore.getLongValue(String, long), ParameterStore.getDoubleValue(String),
ParameterStore.getDoubleValue(String, double), ParameterStore.getStringValue(String) and
ParameterStore.getStringValue(String, String).