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.
|
void |
cleanup()
Cleanup when it is no longer needed.
|
boolean |
isReady() |
void |
onComplete()
Invoked when an
Action is completed. |
void |
registerListener() |
public CompositeAction(Collection<ReadyAction> actions)
public void registerListener()
public boolean isReady()
isReady in interface ReadyActiontrue if ready.public void addListener(ActionListener listener)
ReadyActionaddListener in interface ReadyActionlistener - the listener to invoke.public void cleanup()
ReadyActioncleanup in interface ReadyActionpublic void onComplete()
ActionListenerAction is completed.onComplete in interface ActionListenerCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.