[New] Added default implementations in Observer
This commit is contained in:
parent
95815c6f84
commit
433d4dad4e
|
@ -21,9 +21,15 @@ import li.strolch.model.StrolchRootElement;
|
|||
|
||||
public interface Observer {
|
||||
|
||||
void add(String key, List<StrolchRootElement> elements) throws Exception;
|
||||
default void add(String key, List<StrolchRootElement> elements) throws Exception {
|
||||
// empty implementation
|
||||
}
|
||||
|
||||
void update(String key, List<StrolchRootElement> elements) throws Exception;
|
||||
default void update(String key, List<StrolchRootElement> elements) throws Exception {
|
||||
// empty implementation
|
||||
}
|
||||
|
||||
void remove(String key, List<StrolchRootElement> elements) throws Exception;
|
||||
default void remove(String key, List<StrolchRootElement> elements) throws Exception {
|
||||
// empty implementation
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue