|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.workflow.util.ContextSupport
public class ContextSupport
ContextSupport is a convenience class for managing the
firing of ContextEvents to registered
ContextListeners.
| Field Summary | |
|---|---|
protected Context |
context
The Context for whom we will fire events. |
protected ContextListener[] |
listeners
The set of registered ContextListener event listeners. |
| Constructor Summary | |
|---|---|
ContextSupport(Context context)
Construct a new ContextSupport object associated with the specified Context. |
|
| Method Summary | |
|---|---|
void |
addContextListener(ContextListener listener)
Add a listener that is notified each time beans are added, replaced, or removed in this context. |
void |
fireAfterActivity(Step step)
Fire a afterActivity event to all registered listeners. |
void |
fireAfterActivity(Step step,
StepException exception)
Fire a afterActivity event to all registered listeners. |
void |
fireAfterStep(Step step)
Fire a afterStep event to all registered listeners. |
void |
fireAfterStep(Step step,
StepException exception)
Fire a afterStep event to all registered listeners. |
void |
fireBeforeActivity(Step step)
Fire a beforeActivity event to all registered listeners. |
void |
fireBeforeStep(Step step)
Fire a beforeStep event to all registered listeners. |
void |
removeContextListener(ContextListener listener)
Remove a listener that is notified each time beans are added, replaced, or removed in this context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ContextListener[] listeners
ContextListener event listeners.
protected Context context
Context for whom we will fire events.
| Constructor Detail |
|---|
public ContextSupport(Context context)
context - Context for whom we will fire events| Method Detail |
|---|
public void addContextListener(ContextListener listener)
listener - The ContextListener to be addedpublic void removeContextListener(ContextListener listener)
listener - The ContextListener to be removedpublic void fireAfterActivity(Step step)
afterActivity event to all registered listeners.
step - Step that was executed last
public void fireAfterActivity(Step step,
StepException exception)
afterActivity event to all registered listeners.
step - Step that was executed lastexception - StepException thrown by the last Steppublic void fireAfterStep(Step step)
afterStep event to all registered listeners.
step - Step that was executed
public void fireAfterStep(Step step,
StepException exception)
afterStep event to all registered listeners.
step - Step that was executedexception - StepException thrown by the executed steppublic void fireBeforeActivity(Step step)
beforeActivity event to all registered listeners.
step - Step that will be executed firstpublic void fireBeforeStep(Step step)
beforeStep event to all registered listeners.
step - Step that is about to be executed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||