public class ScriptItemProcessorBuilder<I,O>
extends java.lang.Object
| Constructor and Description |
|---|
ScriptItemProcessorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ScriptItemProcessor<I,O> |
build()
Returns a fully constructed
ScriptItemProcessor. |
ScriptItemProcessorBuilder<I,O> |
itemBindingVariableName(java.lang.String itemBindingVariableName)
Provides the ability to change the key name that scripts use to obtain the current
item to process if the variable represented by:
ScriptItemProcessor.ITEM_BINDING_VARIABLE_NAME
is not suitable ("item"). |
ScriptItemProcessorBuilder<I,O> |
language(java.lang.String language)
Establishes the language of the script.
|
ScriptItemProcessorBuilder<I,O> |
scriptResource(org.springframework.core.io.Resource resource)
Sets the
Resource location of the script to
use. |
ScriptItemProcessorBuilder<I,O> |
scriptSource(java.lang.String scriptSource)
Sets the provided
String as the script source code to use. |
public ScriptItemProcessorBuilder<I,O> scriptResource(org.springframework.core.io.Resource resource)
Resource location of the script to
use. The script language will be deduced from the filename extension.resource - the Resource location of the
script to use.ScriptItemProcessor.setScript(Resource)public ScriptItemProcessorBuilder<I,O> language(java.lang.String language)
language - the language of the script.ScriptItemProcessor.setScriptSource(String, String)public ScriptItemProcessorBuilder<I,O> scriptSource(java.lang.String scriptSource)
String as the script source code to use. Language must
not be null nor empty when using script.scriptSource - the String form of the script source code to use.ScriptItemProcessor.setScriptSource(String, String)public ScriptItemProcessorBuilder<I,O> itemBindingVariableName(java.lang.String itemBindingVariableName)
ScriptItemProcessor.ITEM_BINDING_VARIABLE_NAME
is not suitable ("item").itemBindingVariableName - the desired binding variable nameScriptItemProcessor.setItemBindingVariableName(String)public ScriptItemProcessor<I,O> build()
ScriptItemProcessor.ScriptItemProcessor