All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.cache.jcache.JCacheHelper Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta2
Show newest version
/*
 * 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