Class PluginTaskExecutor
java.lang.Object
com.xebialabs.xlrelease.domain.tasks.plugin.PluginTaskExecutor
- All Implemented Interfaces:
TaskExecutor<com.xebialabs.xlrelease.domain.PluginTask>
@Component
public class PluginTaskExecutor
extends Object
implements TaskExecutor<com.xebialabs.xlrelease.domain.PluginTask>
The one compiled executor behind every plugin-contributed task type.
It ships with the host and never changes per plugin: ScalaExecutionService keys its
executor map by compiled task class, and every plugin task is a PluginTask, so this bean
lands there like any other built-in with no change to that map's structure.
Like CustomScriptTaskExecutor, it does not run anything itself - it submits a job, and
PluginTaskWorker runs the extension on a worker thread. Execution is fire-and-forget;
completion is reported by the job updating task state, not by a return value.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginTaskExecutor(com.xebialabs.xlrelease.scheduler.WorkManager workManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(TaskSoftReference<com.xebialabs.xlrelease.domain.PluginTask> taskRef) Class<com.xebialabs.xlrelease.domain.PluginTask>
-
Constructor Details
-
PluginTaskExecutor
@Autowired public PluginTaskExecutor(com.xebialabs.xlrelease.scheduler.WorkManager workManager)
-
-
Method Details
-
getTaskClass
- Specified by:
getTaskClassin interfaceTaskExecutor<com.xebialabs.xlrelease.domain.PluginTask>
-
execute
- Specified by:
executein interfaceTaskExecutor<com.xebialabs.xlrelease.domain.PluginTask>
-