|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.handler.AbstractScriptExecutingMessageProcessor<T>
public abstract class AbstractScriptExecutingMessageProcessor<T>
Base MessageProcessor
for scripting implementations to extend.
Constructor Summary | |
---|---|
AbstractScriptExecutingMessageProcessor()
|
Method Summary | |
---|---|
protected abstract T |
executeScript(ScriptSource scriptSource,
Message<?> message)
Subclasses must implement this method. |
protected abstract 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 |
---|
public AbstractScriptExecutingMessageProcessor()
Method Detail |
---|
public final T processMessage(Message<?> message)
processMessage
in interface MessageProcessor<T>
protected abstract ScriptSource getScriptSource(Message<?> message)
message
- the message being processed
protected abstract T executeScript(ScriptSource scriptSource, Message<?> message) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |