org.pietschy.command
Interface ActionCommandInterceptor
- EmptyInterceptor, GlassPaneInterceptor
public interface ActionCommandInterceptor
This interface allows the interception of command execution. The
interceptor is notified just before and just after the command has been invoked. The interceptor can cancel
the command invocation if required by returning
false from
beforeExecute(ActionCommand)
.
afterExecute
public void afterExecute(ActionCommand command)
Called just after a commands execution.
command
- the command that was invoked.
beforeExecute
public boolean beforeExecute(ActionCommand command)
Called just prior to a commands execution.
command
- the command that is about to be invoked.
- true to continue the command invocation, false to cancel it.