Class StepInstances
- 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepInstances
getInstance()
Singleton method.Module
getModule(Step step)
Get a module instance.Module
getModule(Step step, String moduleName, String moduleVersion)
Get a step instance.void
registerStep(Step step, Module module)
Register a step instance.void
removeStep(Step step)
Remove a step instance.
-
-
-
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 stepmoduleVersion
- 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 stepmodule
- 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
-
-