|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.workflow.util.ScopeSupport
ScopeSupport is a convenience class for managing the
firing of ScopeEvents to registered
ScopeListeners.
| Field Summary | |
protected org.apache.commons.workflow.ScopeListener[] |
listeners
The set of registered ScopeListener event listeners. |
protected org.apache.commons.workflow.Scope |
scope
The Scope for whom we will fire events. |
| Constructor Summary | |
ScopeSupport(org.apache.commons.workflow.Scope scope)
Construct a new ScopeSupport object associated with the specified Scope. |
|
| Method Summary | |
void |
addScopeListener(org.apache.commons.workflow.ScopeListener listener)
Add a listener that is notified each time beans are added, replaced, or removed in this scope. |
void |
fireBeanAdded(java.lang.String key,
java.lang.Object value)
Fire a beanAdded() event to all registered listeners. |
void |
fireBeanRemoved(java.lang.String key,
java.lang.Object value)
Fire a beanRemoved() event to all registered listeners. |
void |
fireBeanReplaced(java.lang.String key,
java.lang.Object value)
Fire a beanReplaced() event to all registered listeners. |
void |
fireScopeCleared()
Fire a scopeCleared() event to all registered listeners. |
void |
removeScopeListener(org.apache.commons.workflow.ScopeListener listener)
Remove a listener that is notified each time beans are added, replaced, or removed in this scope. |
| 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.ScopeListener[] listeners
ScopeListener event listeners.
protected org.apache.commons.workflow.Scope scope
Scope for whom we will fire events.
| Constructor Detail |
public ScopeSupport(org.apache.commons.workflow.Scope scope)
scope - Scope for whom we will fire events| Method Detail |
public void addScopeListener(org.apache.commons.workflow.ScopeListener listener)
listener - The ScopeListener to be addedpublic void removeScopeListener(org.apache.commons.workflow.ScopeListener listener)
listener - The ScopeListener to be removed
public void fireBeanAdded(java.lang.String key,
java.lang.Object value)
beanAdded() event to all registered listeners.
key - Key of the bean that was addedvalue - Value of the bean that was added
public void fireBeanRemoved(java.lang.String key,
java.lang.Object value)
beanRemoved() event to all registered listeners.
key - Key of the bean that was removedvalue - Value of the bean that was removed
public void fireBeanReplaced(java.lang.String key,
java.lang.Object value)
beanReplaced() event to all registered listeners.
key - Key of the bean that was replacedvalue - Old value of the bean that was replacedpublic void fireScopeCleared()
scopeCleared() event to all registered listeners.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||