ActionHandler instead.@Deprecated
public interface ActionInterceptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUFFIX
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(ActionExecutionStatus status,
GriffonController controller,
java.lang.String actionName,
java.lang.Object[] args)
Deprecated.
Called after the action has been aborted or executed, even if an exception
occurred during execution.
|
java.lang.Object[] |
before(GriffonController controller,
java.lang.String actionName,
java.lang.Object[] args)
Deprecated.
Called before an action is executed.
|
void |
configure(GriffonController controller,
java.lang.String actionName,
java.lang.reflect.Method method)
Deprecated.
Inspect the action during the configuration phase.
|
boolean |
exception(java.lang.Exception exception,
GriffonController controller,
java.lang.String actionName,
java.lang.Object[] args)
Deprecated.
Called after the action has been executed when an exception occurred
during execution.
|
static final java.lang.String SUFFIX
void configure(@Nonnull
GriffonController controller,
@Nonnull
java.lang.String actionName,
@Nonnull
java.lang.reflect.Method method)
before(), after() and exception().controller - the controller that owns the actionactionName - the action's namemethod - the method that represents the action itself@Nonnull
java.lang.Object[] before(@Nonnull
GriffonController controller,
@Nonnull
java.lang.String actionName,
@Nonnull
java.lang.Object[] args)
AbortActionExecution in
order to signal that the action should not be invoked. In any case this method
returns the arguments to be sent to the action, thus allowing the interceptor
to modify the arguments as it deem necessary. Failure to return an appropriate
value will most likely cause an error during the action's execution.controller - the controller that owns the actionactionName - the action's nameargs - the action's argumentsAbortActionExecution - if action execution should be aborted.void after(@Nonnull
ActionExecutionStatus status,
@Nonnull
GriffonController controller,
@Nonnull
java.lang.String actionName,
@Nonnull
java.lang.Object[] args)
status - a flag that indicates the execution status of the actioncontroller - the controller that owns the actionactionName - the action's nameargs - the arguments sent to the actionboolean exception(@Nonnull
java.lang.Exception exception,
@Nonnull
GriffonController controller,
@Nonnull
java.lang.String actionName,
@Nonnull
java.lang.Object[] args)
exception - the exception thrown during the action's executioncontroller - the controller that owns the actionactionName - the action's nameargs - the arguments sent to the action during executiontrue if the exception was handled successfully,
false otherwise.