Continue structural port from Spring Boot to Undertow

This commit is contained in:
Max Dor
2018-12-30 05:28:05 +01:00
parent 6a376db322
commit 7ad985fead
85 changed files with 1019 additions and 367 deletions

View File

@@ -27,13 +27,13 @@ import java.util.stream.Collectors;
public class NotificationHandlers {
private static final List<Supplier<INotificationHandler>> suppliers = new ArrayList<>();
private static final List<Supplier<NotificationHandler>> suppliers = new ArrayList<>();
public static void register(Supplier<INotificationHandler> supplier) {
public static void register(Supplier<NotificationHandler> supplier) {
suppliers.add(supplier);
}
public static List<INotificationHandler> get() {
public static List<NotificationHandler> get() {
return suppliers.stream().map(Supplier::get).collect(Collectors.toList());
}