Class StepObserverRegistry


  • public class StepObserverRegistry
    extends Object
    This class allow to relay workflow step events to other observers. This class avoid storing observers WorkflowStep objects that are serialized.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Method Detail

      • addObserver

        public void addObserver​(StepObserver observer)
        Add a listener.
        Parameters:
        observer - listener to add
      • removeObserver

        public void removeObserver​(StepObserver observer)
        Remove a listener.
        Parameters:
        observer - listener to remove
      • isNoObserverRegistered

        public boolean isNoObserverRegistered()
        Test if observers has been registered
        Returns:
        true if observers has been registered
      • uiTaskEvent

        public void uiTaskEvent​(UITaskEvent event)
        Handle UI task events.
        Parameters:
        event - the event to handle
      • stepStateEvent

        public void stepStateEvent​(fr.ens.biologie.genomique.eoulsan.core.workflow.StepStateEvent event)
        Handle step state change events.
        Parameters:
        event - the event to handle
      • uiStepEvent

        public void uiStepEvent​(UIStepEvent event)
        Handle UI step events.
        Parameters:
        event - the event to handle
      • uiWorkflowEvent

        public void uiWorkflowEvent​(UIWorkflowEvent event)
        Handle UI workflow events.
        Parameters:
        event - the event to handle
      • getInstance

        public static StepObserverRegistry getInstance()
        Get the singleton instance of WorkflowStepObserverRegistry.
        Returns:
        the singleton instance of WorkflowStepObserverRegistry