Polish Javadoc for ContextCache
This commit is contained in:
@@ -20,7 +20,7 @@ import org.springframework.context.ApplicationContext;
|
|||||||
import org.springframework.test.annotation.DirtiesContext.HierarchyMode;
|
import org.springframework.test.annotation.DirtiesContext.HierarchyMode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code ContextCache} defines the public API for caching Spring
|
* {@code ContextCache} defines the SPI for caching Spring
|
||||||
* {@link ApplicationContext ApplicationContexts} within the <em>Spring
|
* {@link ApplicationContext ApplicationContexts} within the <em>Spring
|
||||||
* TestContext Framework</em>.
|
* TestContext Framework</em>.
|
||||||
*
|
*
|
||||||
@@ -29,11 +29,12 @@ import org.springframework.test.annotation.DirtiesContext.HierarchyMode;
|
|||||||
*
|
*
|
||||||
* <h3>Rationale</h3>
|
* <h3>Rationale</h3>
|
||||||
* <p>Context caching can have significant performance benefits if context
|
* <p>Context caching can have significant performance benefits if context
|
||||||
* initialization is complex. So, although initializing a Spring context itself
|
* initialization is complex. Although the initialization of a Spring context
|
||||||
* is typically very quick, some beans in a context — for example, an
|
* itself is typically very quick, some beans in a context — for example,
|
||||||
* in-memory database or a {@code LocalSessionFactoryBean} for working with
|
* an embedded database or a {@code LocalContainerEntityManagerFactoryBean} for
|
||||||
* Hibernate — may take several seconds to initialize. Hence it often
|
* working with JPA — may take several seconds to initialize. Hence it
|
||||||
* makes sense to perform that initialization only once per test suite.
|
* often makes sense to perform that initialization only once per test suite or
|
||||||
|
* JVM process.
|
||||||
*
|
*
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|||||||
Reference in New Issue
Block a user