polishing

This commit is contained in:
Mark Fisher
2010-11-04 16:10:55 -04:00
parent 2695566a8b
commit 24b08f2602
10 changed files with 79 additions and 53 deletions

View File

@@ -31,11 +31,13 @@ public abstract class AbstractScriptExecutingMessageProcessor<T> implements Mess
public final T processMessage(Message<?> message) {
try {
return this.executeScript(getScriptSource(message), message);
} catch (Exception e) {
}
catch (Exception e) {
throw new MessageHandlingException(message, "failed to execute script", e);
}
}
/**
* Subclasses must implement this method to create a script source, optionally using the message to locate or
* create the script.