Class StepInstances
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.StepInstances
This class store module instances and avoid storing this instance in Step objects that are
serialized.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionstatic StepInstancesSingleton method.Get a module instance.Get a module instance.voidregisterStep(Step step, Module module) Register a step instance.voidremoveStep(Step step) Remove a step instance.
-
Method Details
-
getModule
Get a module instance.- Parameters:
step- the step- Returns:
- a module instance
- Throws:
EoulsanRuntimeException- if an error occurs while loading the module
-
getModule
Get a module instance.- Parameters:
step- workflow stepmoduleName- module namemoduleVersion- module version- Returns:
- a Module instance
- Throws:
EoulsanException- if an error occurs while loading the step
-
registerStep
Register a step instance.- Parameters:
step- the stepmodule- module instance
-
removeStep
Remove a step instance.- Parameters:
step- workflow step
-
getInstance
Singleton method.- Returns:
- the singleton
-