Restructure autoconfigure packages

Restructure modules packages so that all auto-configuration is
organized under single top-level autoconfigure package.
This commit is contained in:
Phillip Webb
2025-06-11 16:29:17 -07:00
parent e60af6a8c7
commit 3de1e27b64
499 changed files with 1133 additions and 1464 deletions

View File

@@ -1,21 +0,0 @@
/*
* Copyright 2012-2025 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Auto-configuration for Servlet-based integration with Actuator's HTTP exchanges
* support.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.exchanges;

View File

@@ -1,20 +0,0 @@
/*
* Copyright 2012-2025 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Auto-configuration for Servlet-based integration with Actuator's mappings support.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.mappings;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.exchanges;
package org.springframework.boot.servlet.autoconfigure.actuate;
import org.springframework.boot.actuate.autoconfigure.web.exchanges.HttpExchangesProperties;
import org.springframework.boot.actuate.web.exchanges.HttpExchange;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.mappings;
package org.springframework.boot.servlet.autoconfigure.actuate;
import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnAvailableEndpoint;
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;

View File

@@ -17,4 +17,4 @@
/**
* Actuator Servlet support.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
/**
* Provides information about the management servlet context for MVC controllers to use.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.endpoint;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import org.springframework.boot.actuate.autoconfigure.endpoint.expose.IncludeExcludeEndpointFilter;
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import jakarta.servlet.Filter;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import jakarta.servlet.Servlet;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties;

View File

@@ -15,6 +15,6 @@
*/
/**
* Auto-configuration for the Actuator's servlet web endpoints.
* Auto-configuration for {@code jakarta.servlet} actuator web concerns.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.endpoint;
package org.springframework.boot.servlet.autoconfigure.actuate.web;

View File

@@ -1,2 +1,2 @@
org.springframework.boot.servlet.actuate.autoconfigure.endpoint.ServletEndpointManagementContextConfiguration
org.springframework.boot.servlet.actuate.autoconfigure.ServletManagementChildContextConfiguration
org.springframework.boot.servlet.autoconfigure.actuate.web.ServletEndpointManagementContextConfiguration
org.springframework.boot.servlet.autoconfigure.actuate.web.ServletManagementChildContextConfiguration

View File

@@ -1,5 +1,5 @@
org.springframework.boot.servlet.actuate.autoconfigure.ServletManagementContextAutoConfiguration
org.springframework.boot.servlet.actuate.autoconfigure.exchanges.ServletHttpExchangesAutoConfiguration
org.springframework.boot.servlet.actuate.autoconfigure.mappings.ServletMappingsAutoConfiguration
org.springframework.boot.servlet.autoconfigure.HttpEncodingAutoConfiguration
org.springframework.boot.servlet.autoconfigure.MultipartAutoConfiguration
org.springframework.boot.servlet.autoconfigure.MultipartAutoConfiguration
org.springframework.boot.servlet.autoconfigure.actuate.ServletHttpExchangesAutoConfiguration
org.springframework.boot.servlet.autoconfigure.actuate.ServletMappingsAutoConfiguration
org.springframework.boot.servlet.autoconfigure.actuate.web.ServletManagementContextAutoConfiguration

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.exchanges;
package org.springframework.boot.servlet.autoconfigure.actuate;
import java.util.EnumSet;
import java.util.Set;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure.mappings;
package org.springframework.boot.servlet.autoconfigure.actuate;
import org.junit.jupiter.api.Test;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import org.junit.jupiter.api.Test;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.servlet.actuate.autoconfigure;
package org.springframework.boot.servlet.autoconfigure.actuate.web;
import java.util.function.Consumer;
@@ -28,7 +28,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
import org.springframework.boot.test.system.CapturedOutput;
import org.springframework.boot.test.system.OutputCaptureExtension;
import org.springframework.boot.tomcat.actuate.autoconfigure.web.TomcatServletManagementContextAutoConfiguration;
import org.springframework.boot.tomcat.autoconfigure.actuate.web.TomcatServletManagementContextAutoConfiguration;
import org.springframework.boot.tomcat.autoconfigure.servlet.TomcatServletWebServerAutoConfiguration;
import org.springframework.boot.web.server.servlet.context.AnnotationConfigServletWebServerApplicationContext;
import org.springframework.util.StringUtils;