org.hibernate.cache.jcache.JCacheHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-jcache Show documentation
Show all versions of hibernate-jcache Show documentation
Integration for javax.cache into Hibernate as a second-level caching service
/*
* SPDX-License-Identifier: LGPL-2.1-or-later
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.cache.jcache;
import javax.cache.CacheManager;
import javax.cache.Caching;
/**
* @author Steve Ebersole
*/
public class JCacheHelper {
/**
* @apiNote Access to the standard CacheManager used by `hibernate-jcache` unless
* configured differently.
*/
public static CacheManager locateStandardCacheManager() {
// unless configured differently, this is how JCacheRegionFactory
// will locate the CacheManager to use
return Caching.getCachingProvider().getCacheManager();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy