From c9c336a43e47b841830daf17e6effe7e3fc07d3b Mon Sep 17 00:00:00 2001 From: cagache Date: Mon, 6 May 2019 15:20:29 +0300 Subject: [PATCH] autowire the constructor --- .../java/org/alfresco/rest/rm/community/util/DockerHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/DockerHelper.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/DockerHelper.java index c5f3be62a2..adbb4ab30c 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/DockerHelper.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/util/DockerHelper.java @@ -42,6 +42,7 @@ import com.github.dockerjava.core.command.LogContainerResultCallback; import org.apache.commons.lang.SystemUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -58,6 +59,7 @@ public class DockerHelper private static final String REPO_IMAGE_NAME = "repository"; private DockerClient dockerClient; + @Autowired public DockerHelper(@Value ("${docker.host}") String dockerHost) { if (SystemUtils.IS_OS_WINDOWS)