Make Reactive and ServletWebServerFactory extend marker interface

Closes gh-30579
This commit is contained in:
Andy Wilkinson
2022-04-07 18:20:38 +01:00
parent 6d5edc43d8
commit febea4711e
2 changed files with 6 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
package org.springframework.boot.web.reactive.server;
import org.springframework.boot.web.server.WebServer;
import org.springframework.boot.web.server.WebServerFactory;
import org.springframework.http.server.reactive.HttpHandler;
/**
@@ -27,7 +28,7 @@ import org.springframework.http.server.reactive.HttpHandler;
* @see WebServer
*/
@FunctionalInterface
public interface ReactiveWebServerFactory {
public interface ReactiveWebServerFactory extends WebServerFactory {
/**
* Gets a new fully configured but paused {@link WebServer} instance. Clients should
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
package org.springframework.boot.web.servlet.server;
import org.springframework.boot.web.server.WebServer;
import org.springframework.boot.web.server.WebServerFactory;
import org.springframework.boot.web.servlet.ServletContextInitializer;
/**
@@ -27,7 +28,7 @@ import org.springframework.boot.web.servlet.ServletContextInitializer;
* @see WebServer
*/
@FunctionalInterface
public interface ServletWebServerFactory {
public interface ServletWebServerFactory extends WebServerFactory {
/**
* Gets a new fully configured but paused {@link WebServer} instance. Clients should