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