Class DelegateFlowableEventListener

All Implemented Interfaces:
FlowableEventListener

public class DelegateFlowableEventListener extends BaseDelegateEventListener
An FlowableEventListener implementation which uses a classname to create a delegate FlowableEventListener instance to use for event notification.

In case an entityClass was passed in the constructor, only events that are FlowableEntityEvent's that target an entity of the given type, are dispatched to the delegate.
Author:
Frederik Heremans
  • Field Details

    • className

      protected String className
    • delegateInstance

      protected FlowableEventListener delegateInstance
    • failOnException

      protected boolean failOnException
  • Constructor Details

    • DelegateFlowableEventListener

      public DelegateFlowableEventListener(String className, Class<?> entityClass)
  • Method Details

    • onEvent

      public void onEvent(FlowableEvent event)
    • isFailOnException

      public boolean isFailOnException()
    • getDelegateInstance

      protected FlowableEventListener getDelegateInstance()