Polish Javadoc for ContextCache

This commit is contained in:
Sam Brannen
2015-04-20 00:53:45 +02:00
parent 93f403cbf6
commit e829b2aa1d

View File

@@ -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 &mdash; for example, an * itself is typically very quick, some beans in a context &mdash; for example,
* in-memory database or a {@code LocalSessionFactoryBean} for working with * an embedded database or a {@code LocalContainerEntityManagerFactoryBean} for
* Hibernate &mdash; may take several seconds to initialize. Hence it often * working with JPA &mdash; 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