extend processor with after returning/throwing

SHL-40
This commit is contained in:
Costin Leau
2012-07-12 20:45:24 +03:00
parent 0ae6edba37
commit d825aaeb41
3 changed files with 29 additions and 6 deletions

View File

@@ -46,9 +46,13 @@ public class SimpleExecutionStrategyTest {
return (beforeReturn == null ? invocationContext : beforeReturn);
}
public void afterInvocation(ParseResult invocationContext) {
public void afterReturningInvocation(ParseResult invocationContext, Object result) {
after = invocationContext;
}
public void afterThrowingInvocation(ParseResult invocationContext, Throwable thrown) {
//
}
}
private SimpleExecutionStrategy execution = new SimpleExecutionStrategy();