mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
implemented restarter to move control over the restart process to the core
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user