public interface CommandInterceptor
Interface for implementers of command interception.
Each implementor must satisfy, that in the intercept(CommandContext) 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.
| Modifier and Type | Method and Description |
|---|---|
void |
intercept(CommandContext ctx)
When processing custom logic must satisfy, that at least once will be called method
CommandContext.invoke(). |
void intercept(CommandContext ctx) throws CommandInterceptorException
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 contextCommandInterceptorException - if the subsequent interceptor doesn't call CommandContext.invoke() in it's
intercept(CommandContext) method body.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.