public class CompositeAction extends Object implements ReadyAction, ActionListener
ReadyAction
implementation that delegates it logic to a collection of other ReadyAction
.Constructor and Description |
---|
CompositeAction(Collection<ReadyAction> actions) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ActionListener listener)
It adds a listener that is invoked when this action is ready.
|
boolean |
isReady() |
void |
onComplete()
Invoked when an
Action is completed. |
void |
onException()
Cleanup when the command throws an exception while executing.
|
void |
onFinally()
Invoked always after the command is executed and the reply is sent.
|
void |
registerListener() |
public CompositeAction(Collection<ReadyAction> actions)
public void registerListener()
public boolean isReady()
isReady
in interface ReadyAction
true
if ready.public void addListener(ActionListener listener)
ReadyAction
addListener
in interface ReadyAction
listener
- the listener to invoke.public void onException()
ReadyAction
onException
in interface ReadyAction
public void onFinally()
ReadyAction
onFinally
in interface ReadyAction
public void onComplete()
ActionListener
Action
is completed.onComplete
in interface ActionListener
Copyright © 2021 JBoss by Red Hat. All rights reserved.