Package fr.gouv.vitam.worker.core.impl
Class WorkerFactory
- java.lang.Object
-
- fr.gouv.vitam.worker.core.impl.WorkerFactory
-
public final class WorkerFactory extends java.lang.Object
WorkerImpl Factory to create workerImpl
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Worker
create()
static WorkerFactory
getInstance(PluginLoader pluginLoader)
return the only instance ofWorkerFactory
.
-
-
-
Method Detail
-
getInstance
public static WorkerFactory getInstance(PluginLoader pluginLoader)
return the only instance ofWorkerFactory
. Build the instance at the first call. This method is synchronised, for performance issue, please call only one time.- Parameters:
pluginLoader
- the plugin loader- Returns:
WorkerFactory
-
create
public Worker create()
- Returns:
- WorkerImpl
-
-