Superclass for JUnit test cases using Spring
org.springframework.context.ApplicationContext ApplicationContexts .
Maintains a static cache of contexts by key. This has significant performance
benefit if initializing the context would take time. While initializing a
Spring context itself is very quick, some beans in a context, such as
a LocalSessionFactoryBean for working with Hibernate, may take some time
to initialize. Hence it often makes sense to do that initializing once.
Any ApplicationContext created by this class will be asked to register a JVM
shutdown hook for itself. Unless the context gets closed early, all context
instances will be automatically closed on JVM shutdown. This allows for freeing
external resources held by beans within the context, e.g. temporary files.
Normally you won't extend this class directly but rather extend one of
its subclasses.
author: Rod Johnson author: Juergen Hoeller since: 1.1.1 See Also: AbstractDependencyInjectionSpringContextTests See Also: AbstractTransactionalSpringContextTests See Also: AbstractTransactionalDataSourceSpringContextTests |