ActionInvocation
instead.@Deprecated public interface ActionInvocation extends ActionInvocation
Modifier and Type | Interface and Description |
---|---|
static class |
ActionInvocation.LegacyAdapter
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ActionInvocation |
adapt(ActionInvocation actualInvocation)
Deprecated.
|
default void |
addPreResultListener(PreResultListener listener)
Deprecated.
Register a
PreResultListener to be notified after the Action is executed and
before the Result is executed. |
void |
addPreResultListener(PreResultListener listener)
Deprecated.
|
ActionContext |
getInvocationContext()
Deprecated.
Gets the ActionContext associated with this ActionInvocation.
|
ActionProxy |
getProxy()
Deprecated.
Get the ActionProxy holding this ActionInvocation.
|
Result |
getResult()
Deprecated.
If the ActionInvocation has been executed before and the Result is an instance of
ActionChainResult , this method
will walk down the chain of ActionChainResult s until it finds a non-chain result, which will be returned. |
ValueStack |
getStack()
Deprecated.
Gets the ValueStack associated with this ActionInvocation.
|
default void |
init(ActionProxy proxy)
Deprecated.
|
void |
init(ActionProxy proxy)
Deprecated.
|
default void |
setActionEventListener(ActionEventListener listener)
Deprecated.
Sets the action event listener to respond to key action events.
|
void |
setActionEventListener(ActionEventListener listener)
Deprecated.
|
getAction, getResultCode, invoke, invokeActionOnly, isExecuted, setResultCode
ActionContext getInvocationContext()
ActionInvocation
getInvocationContext
in interface ActionInvocation
Result getResult() throws Exception
ActionInvocation
ActionChainResult
, this method
will walk down the chain of ActionChainResult
s until it finds a non-chain result, which will be returned. If the
ActionInvocation's result has not been executed before, the Result instance will be created and populated with
the result params.getResult
in interface ActionInvocation
Exception
- can be thrown.ActionProxy getProxy()
ActionInvocation
getProxy
in interface ActionInvocation
ValueStack getStack()
ActionInvocation
getStack
in interface ActionInvocation
default void addPreResultListener(PreResultListener listener)
ActionInvocation
PreResultListener
to be notified after the Action is executed and
before the Result is executed.
The ActionInvocation implementation must guarantee that listeners will be called in the order in which they are registered.
Listener registration and execution does not need to be thread-safe.
addPreResultListener
in interface ActionInvocation
listener
- the listener to add.void addPreResultListener(PreResultListener listener)
default void setActionEventListener(ActionEventListener listener)
ActionInvocation
setActionEventListener
in interface ActionInvocation
listener
- the listener.void setActionEventListener(ActionEventListener listener)
default void init(ActionProxy proxy)
init
in interface ActionInvocation
void init(ActionProxy proxy)
static ActionInvocation adapt(ActionInvocation actualInvocation)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.