mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Revise Javadoc regarding new ApplicationContext pause() support
See gh-35269
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user