|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<java.lang.Object> org.springframework.integration.groovy.GroovyCommandMessageProcessor
public class GroovyCommandMessageProcessor
Constructor Summary | |
---|---|
GroovyCommandMessageProcessor()
Creates a GroovyCommandMessageProcessor that will use the DefaultScriptVariableGenerator. |
|
GroovyCommandMessageProcessor(ScriptVariableGenerator scriptVariableGenerator)
Creates a GroovyCommandMessageProcessor that will use the provided ScriptVariableGenerator. |
Method Summary | |
---|---|
protected java.lang.Object |
executeScript(ScriptSource scriptSource,
java.util.Map<java.lang.String,java.lang.Object> variables)
Subclasses must implement this method. |
protected java.lang.String |
generateScriptName(Message<?> message)
|
protected ScriptSource |
getScriptSource(Message<?> message)
Subclasses must implement this method to create a script source, optionally using the message to locate or create the script. |
void |
setCustomizer(GroovyObjectCustomizer customizer)
Sets a GroovyObjectCustomizer for this processor. |
Methods inherited from class org.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor |
---|
processMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroovyCommandMessageProcessor()
public GroovyCommandMessageProcessor(ScriptVariableGenerator scriptVariableGenerator)
Method Detail |
---|
public void setCustomizer(GroovyObjectCustomizer customizer)
GroovyObjectCustomizer
for this processor.
protected ScriptSource getScriptSource(Message<?> message)
AbstractScriptExecutingMessageProcessor
getScriptSource
in class AbstractScriptExecutingMessageProcessor<java.lang.Object>
message
- the message being processed
protected java.lang.Object executeScript(ScriptSource scriptSource, java.util.Map<java.lang.String,java.lang.Object> variables) throws java.lang.Exception
AbstractScriptExecutingMessageProcessor
executeScript
in class AbstractScriptExecutingMessageProcessor<java.lang.Object>
java.lang.Exception
protected java.lang.String generateScriptName(Message<?> message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |