Revise Javadoc regarding new ApplicationContext pause() support

See gh-35269
This commit is contained in:
Sam Brannen
2025-08-04 11:50:47 +03:00
parent 4bfc129f84
commit e590341ca7
6 changed files with 12 additions and 12 deletions
@@ -169,8 +169,8 @@ public interface CacheAwareContextLoaderDelegate {
* for the supplied {@link MergedContextConfiguration} as well as usage of the
* application context for its {@linkplain MergedContextConfiguration#getParent()
* parent}, recursively.
* <p>This informs the {@code ContextCache} that the application context(s) can
* be safely {@linkplain org.springframework.context.Lifecycle#stop() stopped}
* <p>This informs the {@code ContextCache} that the application context(s) can be safely
* {@linkplain org.springframework.context.ConfigurableApplicationContext#pause() paused}
* if no other test classes are actively using the same application context(s).
* @param key the context key; never {@code null}
* @param testClass the test class that is no longer using the application context(s)
@@ -135,8 +135,8 @@ public interface TestContext extends AttributeAccessor, Serializable {
* Call this method to signal that the {@linkplain #getTestClass() test class}
* is no longer using the {@linkplain ApplicationContext application context}
* associated with this test context.
* <p>This informs the context cache that the application context can be
* safely {@linkplain org.springframework.context.Lifecycle#stop() stopped}
* <p>This informs the context cache that the application context can be safely
* {@linkplain org.springframework.context.ConfigurableApplicationContext#pause() paused}
* if no other test classes are actively using the same application context.
* <p>This method is intended to be invoked after execution of the test class
* has ended and should not be invoked unless the application context for this
@@ -143,8 +143,8 @@ public class DefaultTestContext implements TestContext {
/**
* Mark the {@linkplain ApplicationContext application context} associated
* with this test context as <em>unused</em> so that it can be safely
* {@linkplain org.springframework.context.Lifecycle#stop() stopped} if no
* other test classes are actively using the same application context.
* {@linkplain org.springframework.context.ConfigurableApplicationContext#pause() paused}
* if no other test classes are actively using the same application context.
* <p>The default implementation delegates to the {@link CacheAwareContextLoaderDelegate}
* that was supplied when this {@code TestContext} was constructed.
* @since 7.0