public final class StaticFlowExecutionListenerLoader extends java.lang.Object implements FlowExecutionListenerLoader
ConditionalFlowExecutionListenerLoader
.ConditionalFlowExecutionListenerLoader
Modifier and Type | Field and Description |
---|---|
static FlowExecutionListenerLoader |
EMPTY_INSTANCE
A shared listener loader instance that returns am empty listener array on each invocation.
|
Constructor and Description |
---|
StaticFlowExecutionListenerLoader(FlowExecutionListener... listeners)
Creates a new flow execution listener loader that returns the provided listener array on each invocation.
|
StaticFlowExecutionListenerLoader(FlowExecutionListener listener)
Creates a new flow execution listener loader that returns the provided listener on each invocation.
|
Modifier and Type | Method and Description |
---|---|
FlowExecutionListener[] |
getListeners(FlowDefinition flowDefinition)
Get the flow execution listeners that apply to the given flow definition.
|
public static final FlowExecutionListenerLoader EMPTY_INSTANCE
public StaticFlowExecutionListenerLoader(FlowExecutionListener listener)
listener
- the listenerpublic StaticFlowExecutionListenerLoader(FlowExecutionListener... listeners)
listeners
- the listener array.public FlowExecutionListener[] getListeners(FlowDefinition flowDefinition)
FlowExecutionListenerLoader
getListeners
in interface FlowExecutionListenerLoader
flowDefinition
- the flow definition