|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.scripting.AbstractScriptExecutingMessageProcessor<T>
public abstract class AbstractScriptExecutingMessageProcessor<T>
Base MessageProcessor
for scripting implementations to extend.
Constructor Summary | |
---|---|
protected |
AbstractScriptExecutingMessageProcessor()
|
protected |
AbstractScriptExecutingMessageProcessor(ScriptVariableGenerator scriptVariableGenerator)
|
Method Summary | |
---|---|
protected abstract T |
executeScript(org.springframework.scripting.ScriptSource scriptSource,
java.util.Map<java.lang.String,java.lang.Object> variables)
Subclasses must implement this method. |
protected abstract 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. |
T |
processMessage(Message<?> message)
Executes the script and returns the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractScriptExecutingMessageProcessor()
protected AbstractScriptExecutingMessageProcessor(ScriptVariableGenerator scriptVariableGenerator)
Method Detail |
---|
public final T processMessage(Message<?> message)
processMessage
in interface MessageProcessor<T>
protected abstract org.springframework.scripting.ScriptSource getScriptSource(Message<?> message)
message
- the message being processed
protected abstract T executeScript(org.springframework.scripting.ScriptSource scriptSource, java.util.Map<java.lang.String,java.lang.Object> variables) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |