org.pietschy.command

Interface ActionCommandInterceptor

Known Implementing Classes:
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).
Version:
$Revision: 1.4 $
Author:
andrewp

Method Summary

void
afterExecute(ActionCommand command)
Called just after a commands execution.
boolean
beforeExecute(ActionCommand command)
Called just prior to a commands execution.

Method Details

afterExecute

public void afterExecute(ActionCommand command)
Called just after a commands execution.
Parameters:
command - the command that was invoked.

beforeExecute

public boolean beforeExecute(ActionCommand command)
Called just prior to a commands execution.
Parameters:
command - the command that is about to be invoked.
Returns:
true to continue the command invocation, false to cancel it.