spring-framework / org.springframework.cache.ehcache / EhCacheManagerUtils / parseConfiguration

parseConfiguration

open static fun parseConfiguration(configLocation: Resource): Configuration

Parse EhCache configuration from the given resource, for further use with custom CacheManager creation.

Parameters

configLocation - the location of the configuration file (as a Spring resource)

Exceptions

CacheException - in case of configuration parsing failure

Return
the EhCache Configuration handle

See Also
CacheManager#CacheManager(Configuration)CacheManager#create(Configuration)