implemented restarter to move control over the restart process to the core

This commit is contained in:
Sebastian Sdorra
2020-02-12 14:45:13 +01:00
parent bca34b829d
commit de3db6252e
12 changed files with 201 additions and 69 deletions

View File

@@ -0,0 +1,15 @@
package sonia.scm.lifecycle;
/**
* Creates restart events for testing.
* This is required, because the constructor of {@link RestartEvent} is package private.
*/
public final class RestartEventFactory {
private RestartEventFactory(){}
public static RestartEvent create(Class<?> cause, String reason) {
return new RestartEvent(cause, reason);
}
}