public final class HibernateEhcacheUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static net.sf.ehcache.config.Configuration |
loadAndCorrectConfiguration(URL url)
Create a cache manager configuration from the supplied url, correcting it for Hibernate compatibility.
|
static void |
validateEhcache(net.sf.ehcache.Ehcache cache)
Validates that the supplied Ehcache instance is valid for use as a Hibernate cache.
|
public static net.sf.ehcache.config.Configuration loadAndCorrectConfiguration(URL url)
url - The url to load the config frompublic static void validateEhcache(net.sf.ehcache.Ehcache cache)
throws CacheException
cache - The cache instanceCacheException - If any explicit settings on the cache are not validateCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.