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 Details

    • EMPTY_INSTANCE

      public static final FlowExecutionListenerLoader EMPTY_INSTANCE
      A shared listener loader instance that returns am empty listener array on each invocation.
  • Constructor Details

    • StaticFlowExecutionListenerLoader

      public StaticFlowExecutionListenerLoader(FlowExecutionListener listener)
      Creates a new flow execution listener loader that returns the provided listener on each invocation.
      Parameters:
      listener - the listener
    • StaticFlowExecutionListenerLoader

      public StaticFlowExecutionListenerLoader(FlowExecutionListener... listeners)
      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