public class CacheAwareContextLoaderDelegate extends Object
CacheAwareContextLoaderDelegate
loads application contexts from
MergedContextConfiguration
by delegating to the
ContextLoader
configured in the MergedContextConfiguration
and interacting transparently with the ContextCache
behind the scenes.
Note: CacheAwareContextLoaderDelegate
does not implement the
ContextLoader
or SmartContextLoader
interface.
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
loadContext(MergedContextConfiguration mergedContextConfiguration)
Load the
application context for the supplied
merged context configuration. |
public ApplicationContext loadContext(MergedContextConfiguration mergedContextConfiguration)
application context
for the supplied
merged context configuration.
If the context is present in the cache it will simply be returned; otherwise, it will be loaded, stored in the cache, and returned.
IllegalStateException
- if an error occurs while retrieving or
loading the application context