T - The action target typepublic abstract class ActionHookAdapter<T> extends ActionHook<T>
| Constructor and Description |
|---|
ActionHookAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelAction()
Cancel the ongoing action.
|
void |
cancelled()
The canceled hook, invoked if the action is canceled before or during the
execution of the action.
|
Message |
failed(Throwable cause,
Message message)
The failed hook, invoked if an exception is raised during the execution
of the action.
|
void |
finished()
This finished hook, unconditionally invoked as the last method in an
action life cycle.
|
protected ApplicationController |
getApplicationController()
Get the application controller of the ongoing action, or null if
there is no current, ongoing action.
|
void |
initialized()
The initialized hook.
|
void |
performed(T result)
The performed hook, invoked after
Hookable.initialized() unless the
action has failed or the action is canceled. |
void |
succeeded()
The succeeded hook, invoked after
Hookable.performed(Object) unless the
action failed or the action was canceled. |
getCurrentAction, getEvent, toStringprotected void cancelAction()
IllegalStateException - if the action cannot be cancelled.G9Action.cancel()protected final ApplicationController getApplicationController()
public void initialized()
Hookable
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
public void performed(T result)
HookableHookable.initialized() unless the
action has failed or the action is canceled.
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
result - The result of invoking the actionpublic void succeeded()
HookableHookable.performed(Object) unless the
action failed or the action was canceled.
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
public Message failed(Throwable cause, Message message)
Hookable
The returned message will be displayed to the user (null
means no display).
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
cause - The throwable that caused the execution of the action to
abortmessage - The message object from a previously executed failed hook, or nullpublic void cancelled()
Hookable
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
public void finished()
Hookable
If applicable, this hook is invoked on a dedicated worker thread by
default. Use the annotation ThreadInfo to control which thread
this method is invoked on.
Copyright © 2006–2017 Esito AS. All rights reserved.