diff --git a/config/checkstyle/import-control.xml b/config/checkstyle/import-control.xml index a174fdf0a92..bfae8dfa623 100644 --- a/config/checkstyle/import-control.xml +++ b/config/checkstyle/import-control.xml @@ -13,7 +13,10 @@ - + + + + diff --git a/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/ConfigDataApplicationContextInitializer.java b/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/ConfigDataApplicationContextInitializer.java index 07214a38c8f..046812a1afb 100644 --- a/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/ConfigDataApplicationContextInitializer.java +++ b/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/ConfigDataApplicationContextInitializer.java @@ -16,8 +16,8 @@ package org.springframework.boot.test.context; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.DefaultPropertiesPropertySource; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.config.ConfigData; import org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor; import org.springframework.boot.env.RandomValuePropertySource; diff --git a/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java b/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java index fb23c4cf6ae..3b291243060 100644 --- a/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java +++ b/core/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootContextLoader.java @@ -30,13 +30,13 @@ import org.springframework.aot.hint.RuntimeHints; import org.springframework.beans.BeanUtils; import org.springframework.boot.ApplicationContextFactory; import org.springframework.boot.Banner; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication.AbandonedRunException; import org.springframework.boot.SpringApplicationHook; import org.springframework.boot.SpringApplicationRunListener; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.WebApplicationType; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.test.context.SpringBootTest.UseMainMethod; import org.springframework.boot.test.mock.web.SpringBootMockServletContext; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java index 00aa8a9571a..8014385c21a 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java @@ -58,6 +58,9 @@ import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.support.RootBeanDefinition; import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; import org.springframework.boot.Banner.Mode; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.BootstrapRegistryInitializer; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.properties.bind.Bindable; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.context.properties.source.ConfigurationPropertySources; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListener.java b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListener.java index e1bb3047f29..b3b733257bf 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListener.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListener.java @@ -20,6 +20,7 @@ import java.time.Duration; import org.jspecify.annotations.Nullable; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.context.ApplicationContext; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListeners.java b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListeners.java index 0af7cb6b1c9..522fec60684 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListeners.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationRunListeners.java @@ -23,6 +23,7 @@ import java.util.function.Consumer; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.metrics.ApplicationStartup; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java similarity index 98% rename from core/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java index bd3678106e5..6a5746ef742 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContext.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; import java.util.function.Supplier; @@ -31,7 +31,7 @@ import org.springframework.core.env.Environment; * shared before the {@link ApplicationContext} is available. * * @author Phillip Webb - * @since 2.4.0 + * @since 4.0.0 */ public interface BootstrapContext { diff --git a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapContextClosedEvent.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContextClosedEvent.java similarity index 96% rename from core/spring-boot/src/main/java/org/springframework/boot/BootstrapContextClosedEvent.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContextClosedEvent.java index 43c1385e817..87d69943b04 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapContextClosedEvent.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContextClosedEvent.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; import org.springframework.context.ApplicationEvent; import org.springframework.context.ConfigurableApplicationContext; @@ -23,7 +23,7 @@ import org.springframework.context.ConfigurableApplicationContext; * {@link ApplicationEvent} published by a {@link BootstrapContext} when it's closed. * * @author Phillip Webb - * @since 2.4.0 + * @since 4.0.0 * @see BootstrapRegistry#addCloseListener(org.springframework.context.ApplicationListener) */ public class BootstrapContextClosedEvent extends ApplicationEvent { diff --git a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistry.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistry.java similarity index 98% rename from core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistry.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistry.java index 30c5c5f8f46..379797e853f 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistry.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistry.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; import java.util.function.Supplier; @@ -42,7 +42,7 @@ import org.springframework.util.Assert; * use. * * @author Phillip Webb - * @since 2.4.0 + * @since 4.0.0 * @see BootstrapContext * @see ConfigurableBootstrapContext */ diff --git a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistryInitializer.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistryInitializer.java similarity index 88% rename from core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistryInitializer.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistryInitializer.java index 30a9b443fe3..629e76e0d77 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/BootstrapRegistryInitializer.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistryInitializer.java @@ -14,15 +14,14 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; /** * Callback interface that can be used to initialize a {@link BootstrapRegistry} before it * is used. * * @author Phillip Webb - * @since 2.4.5 - * @see SpringApplication#addBootstrapRegistryInitializer(BootstrapRegistryInitializer) + * @since 4.0.0 * @see BootstrapRegistry */ @FunctionalInterface diff --git a/core/spring-boot/src/main/java/org/springframework/boot/ConfigurableBootstrapContext.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/ConfigurableBootstrapContext.java similarity index 94% rename from core/spring-boot/src/main/java/org/springframework/boot/ConfigurableBootstrapContext.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/ConfigurableBootstrapContext.java index 8b56d1caab8..c77c4b578dc 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/ConfigurableBootstrapContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/ConfigurableBootstrapContext.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; /** * A {@link BootstrapContext} that also provides configuration methods through the * {@link BootstrapRegistry} interface. * * @author Phillip Webb - * @since 2.4.0 + * @since 4.0.0 * @see BootstrapRegistry * @see BootstrapContext * @see DefaultBootstrapContext diff --git a/core/spring-boot/src/main/java/org/springframework/boot/DefaultBootstrapContext.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/DefaultBootstrapContext.java similarity index 98% rename from core/spring-boot/src/main/java/org/springframework/boot/DefaultBootstrapContext.java rename to core/spring-boot/src/main/java/org/springframework/boot/bootstrap/DefaultBootstrapContext.java index 55781f77dd3..20f612de325 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/DefaultBootstrapContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/DefaultBootstrapContext.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; import java.util.HashMap; import java.util.Map; @@ -33,7 +33,7 @@ import org.springframework.util.Assert; * Default {@link ConfigurableBootstrapContext} implementation. * * @author Phillip Webb - * @since 2.4.0 + * @since 4.0.0 */ public class DefaultBootstrapContext implements ConfigurableBootstrapContext { diff --git a/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/package-info.java b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/package-info.java new file mode 100644 index 00000000000..5528276a85c --- /dev/null +++ b/core/spring-boot/src/main/java/org/springframework/boot/bootstrap/package-info.java @@ -0,0 +1,24 @@ +/* + * Copyright 2012-present 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. + */ + +/** + * Bootstrap concerns to support the creation of potentially expensive singletons while + * the application starts. + */ +@NullMarked +package org.springframework.boot.bootstrap; + +import org.jspecify.annotations.NullMarked; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java b/core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java index 722364dbbb9..4aec5f84089 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java @@ -33,10 +33,10 @@ import org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact import org.springframework.beans.factory.support.BeanNameGenerator; import org.springframework.boot.ApplicationContextFactory; import org.springframework.boot.Banner; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.BootstrapRegistryInitializer; import org.springframework.boot.SpringApplication; import org.springframework.boot.WebApplicationType; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.BootstrapRegistryInitializer; import org.springframework.boot.convert.ApplicationConversionService; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextInitializer; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironment.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironment.java index a1028a6cffa..6fe6053ce9a 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironment.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironment.java @@ -26,10 +26,10 @@ import java.util.Set; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; -import org.springframework.boot.BootstrapRegistry.Scope; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.DefaultPropertiesPropertySource; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.BootstrapRegistry.Scope; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.config.ConfigDataEnvironmentContributors.BinderOption; import org.springframework.boot.context.properties.bind.BindException; import org.springframework.boot.context.properties.bind.Bindable; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java index 0f98e59953f..387bf884330 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java @@ -29,7 +29,7 @@ import java.util.function.Predicate; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.config.ConfigDataEnvironmentContributor.ImportPhase; import org.springframework.boot.context.config.ConfigDataEnvironmentContributor.Kind; import org.springframework.boot.context.properties.bind.BindContext; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java index 3120313173c..2684318dc58 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessor.java @@ -24,9 +24,9 @@ import java.util.function.Supplier; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.ConfigurableBootstrapContext; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.env.EnvironmentPostProcessor; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.Ordered; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoader.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoader.java index 303b8fd51d0..06262d2c45a 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoader.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoader.java @@ -20,9 +20,9 @@ import java.io.IOException; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; /** diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java index 6b139c17050..cdc8c2b1dec 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaderContext.java @@ -16,7 +16,7 @@ package org.springframework.boot.context.config; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.env.EnvironmentPostProcessor; /** diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaders.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaders.java index cb72e3a6a85..89d4c6f01ab 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaders.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLoaders.java @@ -24,9 +24,9 @@ import java.util.List; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.ResolvableType; import org.springframework.core.io.support.SpringFactoriesLoader; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolver.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolver.java index 5efe93e83b2..ef0c3303a48 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolver.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolver.java @@ -19,9 +19,9 @@ package org.springframework.boot.context.config; import java.util.Collections; import java.util.List; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.Ordered; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java index b24b498e609..a7fa6b317c7 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolverContext.java @@ -18,7 +18,7 @@ package org.springframework.boot.context.config; import org.jspecify.annotations.Nullable; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.env.EnvironmentPostProcessor; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolvers.java b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolvers.java index cb028c509a2..d11617e3a66 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolvers.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolvers.java @@ -24,9 +24,9 @@ import java.util.function.Supplier; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.env.Environment; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java b/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java index 18e0f07957f..782a9a62a6b 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java @@ -16,8 +16,8 @@ package org.springframework.boot.context.event; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.Environment; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartingEvent.java b/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartingEvent.java index 2d37363058f..8a50ca2df15 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartingEvent.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartingEvent.java @@ -16,8 +16,8 @@ package org.springframework.boot.context.event; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; import org.springframework.core.env.Environment; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java b/core/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java index 85b0431c50c..90d73e85c6e 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java @@ -22,12 +22,12 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.jspecify.annotations.Nullable; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplicationRunListener; import org.springframework.boot.availability.AvailabilityChangeEvent; import org.springframework.boot.availability.LivenessState; import org.springframework.boot.availability.ReadinessState; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java index 0f5a2a8c174..3e2f741e43c 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java @@ -16,10 +16,10 @@ package org.springframework.boot.env; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.Environment; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java index 8ddc9b77bdc..152d8ecb32a 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListener.java @@ -33,8 +33,8 @@ import org.springframework.beans.factory.aot.BeanFactoryInitializationAotContrib import org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor; import org.springframework.beans.factory.aot.BeanFactoryInitializationCode; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; -import org.springframework.boot.ConfigurableBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationPreparedEvent; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java index a066eba7fc4..14ee1d80a9e 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessorsFactory.java @@ -20,7 +20,7 @@ import java.util.List; import org.jspecify.annotations.Nullable; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.io.support.SpringFactoriesLoader; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java index bb97a6e434d..b154d22b3a9 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactory.java @@ -23,9 +23,9 @@ import java.util.List; import org.apache.commons.logging.Log; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.boot.util.Instantiator; import org.springframework.util.Assert; diff --git a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java b/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java index 1d88184c583..562b273d116 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/env/SpringFactoriesEnvironmentPostProcessorsFactory.java @@ -18,9 +18,9 @@ package org.springframework.boot.env; import java.util.List; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.io.support.SpringFactoriesLoader; import org.springframework.core.io.support.SpringFactoriesLoader.ArgumentResolver; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java b/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java index 55ac6664615..e7925a483c5 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java @@ -55,11 +55,11 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.BeanNameGenerator; import org.springframework.beans.factory.support.DefaultBeanNameGenerator; import org.springframework.boot.Banner.Mode; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; import org.springframework.boot.availability.AvailabilityChangeEvent; import org.springframework.boot.availability.AvailabilityState; import org.springframework.boot.availability.LivenessState; import org.springframework.boot.availability.ReadinessState; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; import org.springframework.boot.builder.ParentContextApplicationContextInitializer; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context.event.ApplicationContextInitializedEvent; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/DefaultBootstrapContextTests.java b/core/spring-boot/src/test/java/org/springframework/boot/bootstrap/DefaultBootstrapContextTests.java similarity index 98% rename from core/spring-boot/src/test/java/org/springframework/boot/DefaultBootstrapContextTests.java rename to core/spring-boot/src/test/java/org/springframework/boot/bootstrap/DefaultBootstrapContextTests.java index d165156d68b..509987bd292 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/DefaultBootstrapContextTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/bootstrap/DefaultBootstrapContextTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.boot; +package org.springframework.boot.bootstrap; import java.io.IOException; import java.util.concurrent.atomic.AtomicInteger; @@ -23,8 +23,8 @@ import org.assertj.core.api.AbstractAssert; import org.assertj.core.api.AssertProvider; import org.junit.jupiter.api.Test; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; -import org.springframework.boot.BootstrapRegistry.Scope; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.BootstrapRegistry.Scope; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; import org.springframework.context.ConfigurableApplicationContext; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java index e63d6ae514f..e55b5ed7006 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/ApplicationPidFileWriterTests.java @@ -25,8 +25,8 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.event.ApplicationPreparedEvent; import org.springframework.boot.context.event.ApplicationReadyEvent; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/FileEncodingApplicationListenerTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/FileEncodingApplicationListenerTests.java index 6fa374b121f..cf25036982f 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/FileEncodingApplicationListenerTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/FileEncodingApplicationListenerTests.java @@ -18,8 +18,8 @@ package org.springframework.boot.context; import org.junit.jupiter.api.Test; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.properties.source.ConfigurationPropertySources; import org.springframework.core.env.ConfigurableEnvironment; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java index 3dd1855a969..d47db76aa2a 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributorsTests.java @@ -30,7 +30,7 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.ArgumentCaptor; import org.mockito.junit.jupiter.MockitoExtension; -import org.springframework.boot.DefaultBootstrapContext; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.cloud.CloudPlatform; import org.springframework.boot.context.config.ConfigDataEnvironmentContributor.Kind; import org.springframework.boot.context.config.ConfigDataEnvironmentContributors.BinderOption; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests.java index a6a001ae6c7..f50aff5267f 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests.java @@ -19,9 +19,9 @@ package org.springframework.boot.context.config; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.boot.BootstrapRegistry; import org.springframework.boot.SpringApplication; import org.springframework.boot.WebApplicationType; +import org.springframework.boot.bootstrap.BootstrapRegistry; import org.springframework.boot.context.config.TestConfigDataBootstrap.LoaderHelper; import org.springframework.boot.testsupport.classpath.resources.WithResource; import org.springframework.context.ConfigurableApplicationContext; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorTests.java index cbc0c746c70..257726f15b6 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorTests.java @@ -21,9 +21,9 @@ import java.util.function.Supplier; import org.junit.jupiter.api.Test; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.TestApplicationEnvironment; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.config.ConfigData.Options; import org.springframework.boot.testsupport.classpath.resources.WithResource; import org.springframework.core.env.PropertySource; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentTests.java index 0e23beec4a7..af5a3df8085 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentTests.java @@ -32,9 +32,9 @@ import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.springframework.boot.ConfigurableBootstrapContext; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.MockApplicationEnvironment; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.config.ConfigDataEnvironmentContributor.ImportPhase; import org.springframework.boot.context.config.ConfigDataEnvironmentContributor.Kind; import org.springframework.boot.context.config.TestConfigDataEnvironmentUpdateListener.AddedPropertySource; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLoadersTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLoadersTests.java index a1632cd194c..0fb289461f3 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLoadersTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLoadersTests.java @@ -27,11 +27,11 @@ import org.assertj.core.api.InstanceOfAssertFactories; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; -import org.springframework.boot.ConfigurableBootstrapContext; -import org.springframework.boot.DefaultBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.env.PropertySource; import org.springframework.core.test.io.support.MockSpringFactoriesLoader; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationResolversTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationResolversTests.java index 59cef8ec2f3..bd70e554ef0 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationResolversTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationResolversTests.java @@ -27,11 +27,11 @@ import org.junit.jupiter.api.io.TempDir; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; -import org.springframework.boot.ConfigurableBootstrapContext; -import org.springframework.boot.DefaultBootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.ConfigurableBootstrapContext; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.Ordered; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java b/core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java index 794431d3d32..eecdc22242c 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/config/TestConfigDataBootstrap.java @@ -21,8 +21,8 @@ import java.util.Collections; import java.util.List; import java.util.function.Supplier; -import org.springframework.boot.BootstrapContextClosedEvent; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.BootstrapContextClosedEvent; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; import org.springframework.boot.context.properties.bind.Binder; import org.springframework.context.ApplicationListener; import org.springframework.core.env.MapPropertySource; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/event/EventPublishingRunListenerTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/event/EventPublishingRunListenerTests.java index 8370985022b..442f313ed91 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/event/EventPublishingRunListenerTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/event/EventPublishingRunListenerTests.java @@ -24,9 +24,9 @@ import java.util.List; import org.junit.jupiter.api.Test; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.availability.AvailabilityChangeEvent; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; import org.springframework.context.support.StaticApplicationContext; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java b/core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java index 772f6720df5..b88529bc2b0 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java @@ -48,9 +48,9 @@ import org.junit.jupiter.api.io.TempDir; import org.slf4j.LoggerFactory; import org.slf4j.bridge.SLF4JBridgeHandler; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.WebApplicationType; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationStartingEvent; import org.springframework.boot.context.properties.bind.BindException; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java index e40dcc9dfbc..9aeaccee603 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorApplicationListenerTests.java @@ -38,10 +38,10 @@ import org.springframework.aot.AotDetector; import org.springframework.aot.test.generate.TestGenerationContext; import org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution; import org.springframework.beans.factory.support.DefaultListableBeanFactory; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; import org.springframework.boot.WebApplicationType; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent; import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationPreparedEvent; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java index 3b5e1044f76..f14de071432 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/env/EnvironmentPostProcessorsFactoryTests.java @@ -21,8 +21,8 @@ import java.util.function.Supplier; import org.junit.jupiter.api.Test; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.OverridingClassLoader; import org.springframework.core.env.ConfigurableEnvironment; diff --git a/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java b/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java index 03d8b859af8..3a285e53276 100644 --- a/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java +++ b/core/spring-boot/src/test/java/org/springframework/boot/env/ReflectionEnvironmentPostProcessorsFactoryTests.java @@ -24,9 +24,9 @@ import java.util.function.Supplier; import org.apache.commons.logging.Log; import org.junit.jupiter.api.Test; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.logging.DeferredLogFactory; import org.springframework.core.OverridingClassLoader; import org.springframework.core.env.ConfigurableEnvironment; diff --git a/module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestartApplicationListenerTests.java b/module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestartApplicationListenerTests.java index dbeabb4366e..253a03eaaed 100644 --- a/module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestartApplicationListenerTests.java +++ b/module/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/RestartApplicationListenerTests.java @@ -23,8 +23,8 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; -import org.springframework.boot.DefaultBootstrapContext; import org.springframework.boot.SpringApplication; +import org.springframework.boot.bootstrap.DefaultBootstrapContext; import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationPreparedEvent; import org.springframework.boot.context.event.ApplicationReadyEvent; diff --git a/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionBootstrap.java b/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionBootstrap.java index b3499e6054e..ecaa81f6d55 100644 --- a/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionBootstrap.java +++ b/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionBootstrap.java @@ -20,8 +20,8 @@ import java.util.function.Function; import org.jspecify.annotations.Nullable; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapRegistryInitializer; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapRegistryInitializer; /** * Allows the user to register a {@link BootstrapRegistryInitializer} with a custom diff --git a/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionConfigDataLoader.java b/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionConfigDataLoader.java index e5eeae836e1..1516f4212a3 100644 --- a/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionConfigDataLoader.java +++ b/smoke-test/spring-boot-smoke-test-bootstrap-registry/src/main/java/smoketest/bootstrapregistry/external/svn/SubversionConfigDataLoader.java @@ -19,10 +19,10 @@ package smoketest.bootstrapregistry.external.svn; import java.io.IOException; import java.util.Collections; -import org.springframework.boot.BootstrapContext; -import org.springframework.boot.BootstrapContextClosedEvent; -import org.springframework.boot.BootstrapRegistry; -import org.springframework.boot.BootstrapRegistry.InstanceSupplier; +import org.springframework.boot.bootstrap.BootstrapContext; +import org.springframework.boot.bootstrap.BootstrapContextClosedEvent; +import org.springframework.boot.bootstrap.BootstrapRegistry; +import org.springframework.boot.bootstrap.BootstrapRegistry.InstanceSupplier; import org.springframework.boot.context.config.ConfigData; import org.springframework.boot.context.config.ConfigDataLoader; import org.springframework.boot.context.config.ConfigDataLoaderContext;