public class ScriptSpec extends MessageProcessorSpec<ScriptSpec>
MessageProcessorSpec
implementation for the DslScriptExecutingMessageProcessor
.PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier and Type | Method and Description |
---|---|
protected MessageProcessor<?> |
doGet() |
ScriptSpec |
lang(String lang)
The script lang (Groovy, ruby, python etc.).
|
ScriptSpec |
refreshCheckDelay(long refreshCheckDelay)
The refreshCheckDelay in milliseconds for refreshable script resource.
|
ScriptSpec |
variable(String name,
Object value)
The script variable to use.
|
ScriptSpec |
variableGenerator(ScriptVariableGenerator variableGenerator)
The
ScriptVariableGenerator to use. |
ScriptSpec |
variables(Map<String,Object> variables)
The script variables to use
|
ScriptSpec |
variables(MapBuilder<?,String,Object> variables)
The script variables to use.
|
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public ScriptSpec 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(ScriptVariableGenerator variableGenerator)
ScriptVariableGenerator
to use.variableGenerator
- the ScriptVariableGenerator
AbstractScriptExecutingMessageProcessor
public ScriptSpec variables(MapBuilder<?,String,Object> variables)
variables
- the script variables MapBuilder
DefaultScriptVariableGenerator
public ScriptSpec variables(Map<String,Object> variables)
variables
- the script variables Map
DefaultScriptVariableGenerator
public ScriptSpec variable(String name, Object value)
name
- the name of variablevalue
- the value of variableDefaultScriptVariableGenerator
protected MessageProcessor<?> doGet()
doGet
in class IntegrationComponentSpec<ScriptSpec,MessageProcessor<?>>