|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader
public class ConditionalFlowExecutionListenerLoader
A flow execution listener loader that stores listeners in a list-backed data structure and allows for configuration
of which listeners should apply to which flow definitions. For trivial listener loading, see
StaticFlowExecutionListenerLoader.
StaticFlowExecutionListenerLoader| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger, usable by subclasses. |
| Constructor Summary | |
|---|---|
ConditionalFlowExecutionListenerLoader()
|
|
| Method Summary | |
|---|---|
void |
addListener(FlowExecutionListener listener)
Add a listener that will listen to executions for all flows. |
void |
addListener(FlowExecutionListener listener,
FlowExecutionListenerCriteria criteria)
Add a listener that will listen to executions to flows matching the specified criteria. |
void |
addListeners(FlowExecutionListener[] listeners,
FlowExecutionListenerCriteria criteria)
Adds a collection of listeners that share a matching criteria. |
boolean |
containsListener(FlowExecutionListener listener)
Is the given listener contained by this Flow execution manager? |
protected FlowExecutionListenerCriteria |
getCriteria(java.lang.String value)
Decode given string value into one of the well known criteria types. |
FlowExecutionListener[] |
getListeners(FlowDefinition flowDefinition)
Returns the array of flow execution listeners for specified flow. |
void |
removeAllListeners()
Remove all listeners loadable by this loader. |
void |
removeListener(FlowExecutionListener listener)
Remove the flow execution listener from the listener list. |
void |
removeListenerCriteria(FlowExecutionListener listener,
FlowExecutionListenerCriteria criteria)
Remove the criteria for the specified listener. |
void |
setListeners(java.util.Map listenersWithCriteria)
Set the list of flow execution listeners with corresponding criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public ConditionalFlowExecutionListenerLoader()
| Method Detail |
|---|
public void addListener(FlowExecutionListener listener)
listener - the listener to add
public void addListeners(FlowExecutionListener[] listeners,
FlowExecutionListenerCriteria criteria)
listeners - the listenerscriteria - the criteria where these listeners apply
public void addListener(FlowExecutionListener listener,
FlowExecutionListenerCriteria criteria)
listener - the listenercriteria - the listener criteriapublic void setListeners(java.util.Map listenersWithCriteria)
FlowExecutionListener objects as keys and Strings ("*", "flowId",
"flowId1,flowId2") or FlowExecutionListenerCriteria objects as values. This will clear any listeners
registered with this object using the addListener methods.
listenersWithCriteria - the map of listeners and their corresponding criteriapublic boolean containsListener(FlowExecutionListener listener)
listener - the listener
public void removeListener(FlowExecutionListener listener)
listener - the listenerpublic void removeAllListeners()
public void removeListenerCriteria(FlowExecutionListener listener,
FlowExecutionListenerCriteria criteria)
listener - the listenercriteria - the criteriapublic FlowExecutionListener[] getListeners(FlowDefinition flowDefinition)
getListeners in interface FlowExecutionListenerLoaderflowDefinition - the flow definition associated with the execution to be listened to
protected FlowExecutionListenerCriteria getCriteria(java.lang.String value)
FlowExecutionListenerCriteriaFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||