From e254e8a0cd784e464cc3c9feed2df9a3df58abd1 Mon Sep 17 00:00:00 2001 From: Migwel Date: Fri, 29 Dec 2023 22:56:31 +0100 Subject: [PATCH] Small naming changes after previous commit --- .../dev/migwel/sts/domain/service/FromServiceFactory.java | 2 +- .../java/dev/migwel/sts/domain/service/ToServiceFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/migwel/sts/domain/service/FromServiceFactory.java b/src/main/java/dev/migwel/sts/domain/service/FromServiceFactory.java index 3b3968e..f8fdd18 100644 --- a/src/main/java/dev/migwel/sts/domain/service/FromServiceFactory.java +++ b/src/main/java/dev/migwel/sts/domain/service/FromServiceFactory.java @@ -22,6 +22,6 @@ public FromService getFromService(T fromRequest) { return (FromService) fromService; } } - throw new IllegalArgumentException("No search service available for this search request"); + throw new IllegalArgumentException("No From service available for this search request"); } } diff --git a/src/main/java/dev/migwel/sts/domain/service/ToServiceFactory.java b/src/main/java/dev/migwel/sts/domain/service/ToServiceFactory.java index f6203fd..439f10e 100644 --- a/src/main/java/dev/migwel/sts/domain/service/ToServiceFactory.java +++ b/src/main/java/dev/migwel/sts/domain/service/ToServiceFactory.java @@ -17,12 +17,12 @@ public ToServiceFactory(List> toServices) { this.toServices = List.copyOf(toServices); } - public ToService getSaveService(T saveRequest) { + public ToService getToService(T saveRequest) { for (ToService toService : toServices) { if (toService.isRelevant(saveRequest.getClass())) { return (ToService) toService; } } - throw new IllegalArgumentException("No search service available for this search request"); + throw new IllegalArgumentException("No To service available for this search request"); } }