org.springframework.integration.groovy
Class GroovyScriptPayloadMessageProcessor
java.lang.Object
org.springframework.integration.handler.AbstractScriptExecutingMessageProcessor<java.lang.Object>
org.springframework.integration.groovy.GroovyScriptPayloadMessageProcessor
- All Implemented Interfaces:
- MessageProcessor<java.lang.Object>
public class GroovyScriptPayloadMessageProcessor
- extends AbstractScriptExecutingMessageProcessor<java.lang.Object>
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyScriptPayloadMessageProcessor
public GroovyScriptPayloadMessageProcessor()
GroovyScriptPayloadMessageProcessor
public GroovyScriptPayloadMessageProcessor(java.util.Map<java.lang.String,?> map)
GroovyScriptPayloadMessageProcessor
public GroovyScriptPayloadMessageProcessor(GroovyObjectCustomizer customizer)
getScriptSource
protected ScriptSource getScriptSource(Message<?> message)
- Description copied from class:
AbstractScriptExecutingMessageProcessor
- Subclasses must implement this method to create a script source, optionally using the message to locate or
create the script.
- Specified by:
getScriptSource
in class AbstractScriptExecutingMessageProcessor<java.lang.Object>
- Parameters:
message
- the message being processed
- Returns:
- a ScriptSource to use to create a script
executeScript
protected java.lang.Object executeScript(ScriptSource scriptSource,
Message<?> message)
throws java.lang.Exception
- Description copied from class:
AbstractScriptExecutingMessageProcessor
- Subclasses must implement this method. In doing so, the execution context for the script should be populated with
the Message's 'payload' and 'headers' as variables.
- Specified by:
executeScript
in class AbstractScriptExecutingMessageProcessor<java.lang.Object>
- Throws:
java.lang.Exception
generateScriptName
protected java.lang.String generateScriptName(Message<?> message)