Class StaticFlowExecutionListenerLoader
java.lang.Object
org.springframework.webflow.execution.factory.StaticFlowExecutionListenerLoader
- All Implemented Interfaces:
FlowExecutionListenerLoader
public final class StaticFlowExecutionListenerLoader
extends Object
implements FlowExecutionListenerLoader
A simple flow execution listener loader that simply returns a static listener array on each invocation. For more
elaborate needs see the
ConditionalFlowExecutionListenerLoader
.- Author:
- Keith Donald
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FlowExecutionListenerLoader
A shared listener loader instance that returns am empty listener array on each invocation. -
Constructor Summary
ConstructorDescriptionCreates a new flow execution listener loader that returns the provided listener on each invocation.StaticFlowExecutionListenerLoader
(FlowExecutionListener... listeners) Creates a new flow execution listener loader that returns the provided listener array on each invocation. -
Method Summary
Modifier and TypeMethodDescriptiongetListeners
(FlowDefinition flowDefinition) Get the flow execution listeners that apply to the given flow definition.
-
Field Details
-
EMPTY_INSTANCE
A shared listener loader instance that returns am empty listener array on each invocation.
-
-
Constructor Details
-
StaticFlowExecutionListenerLoader
Creates a new flow execution listener loader that returns the provided listener on each invocation.- Parameters:
listener
- the listener
-
StaticFlowExecutionListenerLoader
Creates a new flow execution listener loader that returns the provided listener array on each invocation. Clients should not attempt to modify the passed in array as no deep copy is made.- Parameters:
listeners
- the listener array.
-
-
Method Details
-
getListeners
Description copied from interface:FlowExecutionListenerLoader
Get the flow execution listeners that apply to the given flow definition.- Specified by:
getListeners
in interfaceFlowExecutionListenerLoader
- Parameters:
flowDefinition
- the flow definition- Returns:
- the listeners that apply
-