Skip to content
Snippets Groups Projects
Commit 395151a0 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5666 add Qualifier to vorgangService

parent 0302f3bf
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import net.devh.boot.grpc.client.inject.GrpcClient;
public class NachrichtenManagerConfiguration {
public static final String OZG_CLOUD_COMMAND_SERVICE_NAME = "nachrichten_OzgCloudCommandService";
public static final String NACHRICHTEN_VORGANG_SERVICE = "nachrichten_vorgangService";
@GrpcClient("command-manager")
private CommandServiceGrpc.CommandServiceBlockingStub commandServiceStub;
......
......@@ -34,9 +34,11 @@ import java.util.stream.Stream;
import jakarta.annotation.PostConstruct;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import de.ozgcloud.nachrichten.NachrichtenManagerConfiguration;
import de.ozgcloud.nachrichten.NachrichtenManagerProperties;
import de.ozgcloud.nachrichten.common.vorgang.VorgangService;
import de.ozgcloud.nachrichten.postfach.PersistPostfachNachrichtService;
......@@ -71,6 +73,7 @@ public class AntragraumService {
private final AntragraumProperties properties;
private final NachrichtenManagerProperties nachrichtenManagerProperties;
private final RueckfrageMapper rueckfrageMapper;
@Qualifier(NachrichtenManagerConfiguration.NACHRICHTEN_VORGANG_SERVICE)
private final VorgangService vorgangService;
@PostConstruct
......
......@@ -5,9 +5,10 @@ import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import de.ozgcloud.nachrichten.NachrichtenManagerConfiguration;
import lombok.RequiredArgsConstructor;
@Service
@Service(NachrichtenManagerConfiguration.NACHRICHTEN_VORGANG_SERVICE)
@RequiredArgsConstructor
public class VorgangService {
......
......@@ -57,6 +57,7 @@ public class PersistPostfachNachrichtServiceImpl implements PersistPostfachNachr
static final String ITEM_FIELD = "item";
@Autowired
@Qualifier(NachrichtenManagerConfiguration.NACHRICHTEN_VORGANG_SERVICE)
private VorgangService vorgangService;
@Autowired
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment