Commit f37a0753 authored by Thomas Huster's avatar Thomas Huster

Revert "[20706] added task service holder to core services"

This reverts commit 99dd1984.
parent 6d18ee17
Pipeline #15414 passed with stages
in 6 minutes and 8 seconds
......@@ -16,7 +16,6 @@ Require-Bundle: org.eclipse.core.runtime,,
Import-Package: bsh,
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="" name="">
<reference bind="setTaskService" interface="ch.elexis.core.tasks.model.ITaskService" name="TaskService"/>
<implementation class=""/>
\ No newline at end of file
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import ch.elexis.core.tasks.model.ITaskService;
public class TaskServiceHolder {
private static ITaskService taskService;
public void setTaskService(ITaskService taskService){
TaskServiceHolder.taskService = taskService;
public static ITaskService get() {
if (taskService == null) {
throw new IllegalStateException("No ITaskService available");
return taskService;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment