From 15aab3059db76e1d8140d5844d8f0b94fdb4fc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Wed, 25 Mar 2020 15:55:03 +0100 Subject: [PATCH] Add documentation --- CHANGELOG.md | 1 + scm-core/src/main/java/sonia/scm/lifecycle/Restarter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 948b311b7b..bc6d2713ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Extension point to add links to the repository cards from plug ins ([#1041](https://github.com/scm-manager/scm-manager/pull/1041)) - Libc based restart strategy for posix operating systems ([#1079](https://github.com/scm-manager/scm-manager/pull/1079)) +- Simple restart strategy with System.exit ([#1079](https://github.com/scm-manager/scm-manager/pull/1079)) - Notification if restart is not supported on the underlying platform ([#1079](https://github.com/scm-manager/scm-manager/pull/1079)) ### Changed diff --git a/scm-core/src/main/java/sonia/scm/lifecycle/Restarter.java b/scm-core/src/main/java/sonia/scm/lifecycle/Restarter.java index 0b6c18f0a9..12f9279c80 100644 --- a/scm-core/src/main/java/sonia/scm/lifecycle/Restarter.java +++ b/scm-core/src/main/java/sonia/scm/lifecycle/Restarter.java @@ -43,6 +43,7 @@ public interface Restarter { * * @param cause cause of the restart. This should be the class which calls this method. * @param reason reason for the required restart. + * @throws RestartNotSupportedException if restarting is not supported by the underlying platform. */ void restart(Class cause, String reason); }