com.pietschy.command
Interface ActionCommandInterceptor

All Known Implementing Classes:
EmptyInterceptor, GlassPaneInterceptor

public interface ActionCommandInterceptor

Defines interceptors that will be invoked around the execution of an ActionCommand. The interceptor can abort the command invocation 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 Detail

beforeExecute

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.

afterExecute

void afterExecute(ActionCommand command)
Called just after a commands execution.

Parameters:
command - the command that was invoked.


Copyright © 2006 - 2007 Andrew Pietsch