|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandInterceptor
Interface for implementors of command interception.
Each implementor must satisfy, that in the #intercept(CommandContext, String) method body will be called at
least once method from current context CommandContext.invoke(). This method also returns the return value
of executing given command on associated commandProcessor.
| Method Summary | |
|---|---|
void |
intercept(CommandContext ctx)
When processing custom logic must satisfy, that at least once will be called method CommandContext.invoke(). |
| Method Detail |
|---|
void intercept(CommandContext ctx)
throws CommandInterceptionException
CommandContext.invoke(). It's entry point for passing the logic to next interceptor until the
associated interceptors aren't all triggered, then commandProcess will execute given command and it's return
value will bubble back to each interceptor as return value of CommandContext.invoke() method.
ctx - the current command context
CommandInterceptionException - if the subsequent interceptor doesn't call CommandContext.invoke() in it's
intercept(CommandContext) method body.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||