From 433d4dad4e4033210f3d1734fcd6d5a2472b7adc Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 30 Jun 2022 20:43:20 +0200 Subject: [PATCH] [New] Added default implementations in Observer --- .../src/main/java/li/strolch/agent/api/Observer.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/li.strolch.agent/src/main/java/li/strolch/agent/api/Observer.java b/li.strolch.agent/src/main/java/li/strolch/agent/api/Observer.java index db1456e62..9a73ec713 100644 --- a/li.strolch.agent/src/main/java/li/strolch/agent/api/Observer.java +++ b/li.strolch.agent/src/main/java/li/strolch/agent/api/Observer.java @@ -21,9 +21,15 @@ import li.strolch.model.StrolchRootElement; public interface Observer { - void add(String key, List elements) throws Exception; + default void add(String key, List elements) throws Exception { + // empty implementation + } - void update(String key, List elements) throws Exception; + default void update(String key, List elements) throws Exception { + // empty implementation + } - void remove(String key, List elements) throws Exception; + default void remove(String key, List elements) throws Exception { + // empty implementation + } }