public class ScriptSpec extends MessageProcessorSpec<ScriptSpec>
MessageProcessorSpec
implementation for the
DslScriptExecutingMessageProcessor
.logger, PARSER, target
Modifier and Type | Method and Description |
---|---|
protected org.springframework.integration.handler.MessageProcessor<?> |
doGet() |
ScriptSpec |
lang(java.lang.String lang)
The script lang (Groovy, ruby, python etc.).
|
ScriptSpec |
refreshCheckDelay(long refreshCheckDelay)
The refreshCheckDelay in milliseconds for refreshable script resource.
|
ScriptSpec |
variable(java.lang.String name,
java.lang.Object value)
The script variable to use.
|
ScriptSpec |
variableGenerator(org.springframework.integration.scripting.ScriptVariableGenerator variableGenerator)
The
ScriptVariableGenerator to use. |
ScriptSpec |
variables(java.util.Map<java.lang.String,java.lang.Object> variables)
The script variables to use
|
ScriptSpec |
variables(MapBuilder<?,java.lang.String,java.lang.Object> variables)
The script variables to use.
|
_this, get, getId, getObject, getObjectType, id, isSingleton
public ScriptSpec lang(java.lang.String lang)
lang
- the script langDslScriptExecutingMessageProcessor.setLang(java.lang.String)
public ScriptSpec refreshCheckDelay(long refreshCheckDelay)
refreshCheckDelay
- the refresh check delay millisecondsRefreshableResourceScriptSource
public ScriptSpec variableGenerator(org.springframework.integration.scripting.ScriptVariableGenerator variableGenerator)
ScriptVariableGenerator
to use.variableGenerator
- the ScriptVariableGenerator
AbstractScriptExecutingMessageProcessor
public ScriptSpec variables(MapBuilder<?,java.lang.String,java.lang.Object> variables)
variables
- the script variables MapBuilder
DefaultScriptVariableGenerator
public ScriptSpec variables(java.util.Map<java.lang.String,java.lang.Object> variables)
variables
- the script variables Map
DefaultScriptVariableGenerator
public ScriptSpec variable(java.lang.String name, java.lang.Object value)
name
- the name of variablevalue
- the value of variableDefaultScriptVariableGenerator
protected org.springframework.integration.handler.MessageProcessor<?> doGet()
doGet
in class IntegrationComponentSpec<ScriptSpec,org.springframework.integration.handler.MessageProcessor<?>>