java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.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 Details

    • 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 module instance.
      Parameters:
      step - workflow step
      moduleName - module name
      moduleVersion - module version
      Returns:
      a Module 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