Move actuator mappings introspection classes into dedicated packages
Closes gh-9979
This commit is contained in:
@@ -14,19 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.autoconfigure.web;
|
||||
package org.springframework.boot.actuate.autoconfigure.web.mappings;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint;
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.mappings.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2012-2017 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
|
||||
*
|
||||
* http://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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Classes for auto-configuration of actuator web request mapping concerns.
|
||||
*/
|
||||
package org.springframework.boot.actuate.autoconfigure.web.mappings;
|
||||
@@ -41,7 +41,7 @@ org.springframework.boot.actuate.autoconfigure.system.DiskSpaceHealthIndicatorAu
|
||||
org.springframework.boot.actuate.autoconfigure.trace.TraceEndpointAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.trace.TraceRepositoryAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.trace.TraceWebFilterAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.web.MappingsEndpointAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.web.reactive.ReactiveManagementContextAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration,\
|
||||
org.springframework.boot.actuate.autoconfigure.web.servlet.ServletManagementContextAutoConfiguration
|
||||
|
||||
@@ -23,9 +23,9 @@ import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.mappings.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory;
|
||||
|
||||
@@ -23,11 +23,11 @@ import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.boot.actuate.autoconfigure.health.HealthEndpointAutoC
|
||||
import org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfiguration;
|
||||
import org.springframework.boot.actuate.autoconfigure.management.ThreadDumpEndpointAutoConfiguration;
|
||||
import org.springframework.boot.actuate.autoconfigure.trace.TraceEndpointAutoConfiguration;
|
||||
import org.springframework.boot.actuate.autoconfigure.web.MappingsEndpointAutoConfiguration;
|
||||
import org.springframework.boot.actuate.autoconfigure.web.mappings.MappingsEndpointAutoConfiguration;
|
||||
|
||||
/**
|
||||
* A list of all endpoint auto-configuration classes for use in tests.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web;
|
||||
package org.springframework.boot.actuate.web.mappings;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web;
|
||||
package org.springframework.boot.actuate.web.mappings;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
@@ -15,6 +15,6 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Actuator web support.
|
||||
* Actuator web request mappings support.
|
||||
*/
|
||||
package org.springframework.boot.actuate.web;
|
||||
package org.springframework.boot.actuate.web.mappings;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.reactive;
|
||||
package org.springframework.boot.actuate.web.mappings.reactive;
|
||||
|
||||
import org.springframework.web.servlet.DispatcherServlet;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.reactive;
|
||||
package org.springframework.boot.actuate.web.mappings.reactive;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -28,7 +28,7 @@ import java.util.stream.Stream;
|
||||
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.web.method.HandlerMethod;
|
||||
@@ -15,6 +15,6 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Actuator web support using Spring MVC.
|
||||
* Actuator reactive request mappings support.
|
||||
*/
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.reactive;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import org.springframework.web.servlet.DispatcherServlet;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
@@ -25,7 +25,7 @@ import java.util.Map.Entry;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.data.rest.webmvc.support.DelegatingHandlerMapping;
|
||||
import org.springframework.util.ClassUtils;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -23,7 +23,7 @@ import java.util.stream.Collectors;
|
||||
import javax.servlet.Filter;
|
||||
import javax.servlet.ServletContext;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import javax.servlet.Registration;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web.servlet;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -23,7 +23,7 @@ import java.util.stream.Collectors;
|
||||
import javax.servlet.Servlet;
|
||||
import javax.servlet.ServletContext;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingDescriptionProvider;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Actuator web support using WebFlux.
|
||||
* Actuator servlet request mappings support.
|
||||
*/
|
||||
package org.springframework.boot.actuate.web.reactive;
|
||||
package org.springframework.boot.actuate.web.mappings.servlet;
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.actuate.web;
|
||||
package org.springframework.boot.actuate.web.mappings;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -29,16 +29,16 @@ import javax.servlet.ServletRegistration;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.boot.actuate.web.MappingsEndpoint.ApplicationMappings;
|
||||
import org.springframework.boot.actuate.web.MappingsEndpoint.ContextMappings;
|
||||
import org.springframework.boot.actuate.web.reactive.DispatcherHandlerMappingDescription;
|
||||
import org.springframework.boot.actuate.web.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.DispatcherServletMappingDescription;
|
||||
import org.springframework.boot.actuate.web.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.FilterRegistrationMappingDescription;
|
||||
import org.springframework.boot.actuate.web.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.servlet.ServletRegistrationMappingDescription;
|
||||
import org.springframework.boot.actuate.web.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint.ApplicationMappings;
|
||||
import org.springframework.boot.actuate.web.mappings.MappingsEndpoint.ContextMappings;
|
||||
import org.springframework.boot.actuate.web.mappings.reactive.DispatcherHandlerMappingDescription;
|
||||
import org.springframework.boot.actuate.web.mappings.reactive.DispatcherHandlersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.DispatcherServletMappingDescription;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.DispatcherServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.FilterRegistrationMappingDescription;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.FiltersMappingDescriptionProvider;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.ServletRegistrationMappingDescription;
|
||||
import org.springframework.boot.actuate.web.mappings.servlet.ServletsMappingDescriptionProvider;
|
||||
import org.springframework.boot.test.context.runner.ReactiveWebApplicationContextRunner;
|
||||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
Reference in New Issue
Block a user