From 9e24e037adc95e8cd318540765962702b17dcb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 10 Mar 2024 11:00:14 +0200 Subject: [PATCH 1/2] add to parent pom.xml --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 8af7ff7ae8a2..afa454245f25 100644 --- a/pom.xml +++ b/pom.xml @@ -212,6 +212,7 @@ health-check notification single-table-inheritance + gateway From 6238bbc9a793e76549f4a79412ff236dfeac128f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 10 Mar 2024 11:03:08 +0200 Subject: [PATCH 2/2] update gateway readme --- gateway/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gateway/README.md b/gateway/README.md index f1152ec6cfb4..9307b5d1d0f9 100644 --- a/gateway/README.md +++ b/gateway/README.md @@ -3,7 +3,6 @@ title: Gateway category: Structural language: en tag: -- Gang of Four - Decoupling --- @@ -38,7 +37,7 @@ The main class in our example is the `ExternalService` that contains items. class ExternalServiceA implements Gateway { @Override public void execute() throws Exception { - System.out.println("Executing Service A"); + LOGGER.info("Executing Service A"); // Simulate a time-consuming task Thread.sleep(1000); } @@ -50,7 +49,7 @@ class ExternalServiceA implements Gateway { class ExternalServiceB implements Gateway { @Override public void execute() throws Exception { - System.out.println("Executing Service B"); + LOGGER.info("Executing Service B"); // Simulate a time-consuming task Thread.sleep(1000); } @@ -62,7 +61,7 @@ class ExternalServiceB implements Gateway { class ExternalServiceC implements Gateway { @Override public void execute() throws Exception { - System.out.println("Executing Service C"); + LOGGER.info("Executing Service C"); // Simulate a time-consuming task Thread.sleep(1000); } @@ -100,7 +99,7 @@ public class App { serviceB.execute(); serviceC.execute(); } catch (ThreadDeath e) { - System.out.println("Interrupted!" + e); + LOGGER.info("Interrupted!" + e); throw e; } }