Class ConditionalFlowExecutionListenerLoader
java.lang.Object
org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader
- All Implemented Interfaces:
FlowExecutionListenerLoader
public class ConditionalFlowExecutionListenerLoader
extends Object
implements FlowExecutionListenerLoader
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
.- Author:
- Keith Donald
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(FlowExecutionListener listener, FlowExecutionListenerCriteria criteria) Add a listener that will listen to executions to flows matching the specified criteria.getListeners
(FlowDefinition flowDefinition) Returns the array of flow execution listeners for specified flow.
-
Constructor Details
-
ConditionalFlowExecutionListenerLoader
public ConditionalFlowExecutionListenerLoader()
-
-
Method Details
-
addListener
Add a listener that will listen to executions to flows matching the specified criteria.- Parameters:
listener
- the listenercriteria
- the listener criteria
-
getListeners
Returns the array of flow execution listeners for specified flow.- Specified by:
getListeners
in interfaceFlowExecutionListenerLoader
- Parameters:
flowDefinition
- the flow definition associated with the execution to be listened to- Returns:
- the flow execution listeners that apply
-