Class StepInstances


  • public class StepInstances
    extends Object
    This class store module instances and avoid storing this instance in Step objects that are serialized.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Method Detail

      • getModule

        public Module getModule​(Step step)
        Get a module instance.
        Parameters:
        step - the step
        Returns:
        a module instance
        Throws:
        EoulsanRuntimeException - if an error occurs while loading the module
      • getModule

        public Module getModule​(Step step,
                                String moduleName,
                                String moduleVersion)
                         throws EoulsanException
        Get a step instance.
        Parameters:
        step - workflow step
        moduleVersion - step version
        Returns:
        a step instance
        Throws:
        EoulsanException - if an error occurs while loading the step
      • registerStep

        public void registerStep​(Step step,
                                 Module module)
        Register a step instance.
        Parameters:
        step - the step
        module - module instance
      • removeStep

        public void removeStep​(Step step)
        Remove a step instance.
        Parameters:
        step - workflow step
      • getInstance

        public static StepInstances getInstance()
        Singleton method.
        Returns:
        the singleton