public class ScriptExecutingMessageProcessor extends AbstractScriptExecutingMessageProcessor<Object>
beanClassLoader, beanFactory| Constructor and Description |
|---|
ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptExecutor scriptExecutor)
Create a processor for the
ScriptSource using the provided ScriptExecutor using the DefaultScriptVariableGenerator |
ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptExecutor scriptExecutor,
Map<String,Object> variables)
Create a processor for the
ScriptSource using the provided ScriptExecutor using the DefaultScriptVariableGenerator |
ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptVariableGenerator scriptVariableGenerator,
ScriptExecutor scriptExecutor)
Create a processor for the
ScriptSource using the provided ScriptExecutor |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
executeScript(org.springframework.scripting.ScriptSource scriptSource,
Map<String,Object> variables)
Subclasses must implement this method.
|
protected org.springframework.scripting.ScriptSource |
getScriptSource(Message<?> message)
Subclasses must implement this method to create a script source,
optionally using the message to locate or create the script.
|
processMessage, setBeanClassLoader, setBeanFactorypublic ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptExecutor scriptExecutor)
ScriptSource using the provided ScriptExecutor using the DefaultScriptVariableGeneratorscriptSource - scriptExecutor - public ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptVariableGenerator scriptVariableGenerator,
ScriptExecutor scriptExecutor)
ScriptSource using the provided ScriptExecutorscriptSource - scriptExecutor - public ScriptExecutingMessageProcessor(org.springframework.scripting.ScriptSource scriptSource,
ScriptExecutor scriptExecutor,
Map<String,Object> variables)
ScriptSource using the provided ScriptExecutor using the DefaultScriptVariableGeneratorscriptSource - scriptExecutor - variables - protected org.springframework.scripting.ScriptSource getScriptSource(Message<?> message)
AbstractScriptExecutingMessageProcessorgetScriptSource in class AbstractScriptExecutingMessageProcessor<Object>message - the message being processedprotected Object executeScript(org.springframework.scripting.ScriptSource scriptSource, Map<String,Object> variables) throws Exception
AbstractScriptExecutingMessageProcessorexecuteScript in class AbstractScriptExecutingMessageProcessor<Object>ExceptionCopyright © 2016. All rights reserved.