org.hibernate.cache.CacheProvider Java Examples

The following examples show how to use org.hibernate.cache.CacheProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SettingsFactory.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected CacheProvider createCacheProvider(Properties properties) {
	String cacheClassName = PropertiesHelper.getString(
			Environment.CACHE_PROVIDER, properties, DEF_CACHE_PROVIDER
	);
	log.info("Cache provider: " + cacheClassName);
	try {
		return (CacheProvider) ReflectHelper.classForName(cacheClassName).newInstance();
	}
	catch (Exception cnfe) {
		throw new HibernateException("could not instantiate CacheProvider: " + cacheClassName, cnfe);
	}
}
 
Example #2
Source File: Settings.java    From cacheonix-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public CacheProvider getCacheProvider() {
	return cacheProvider;
}
 
Example #3
Source File: Settings.java    From cacheonix-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
void setCacheProvider(CacheProvider cacheProvider) {
	this.cacheProvider = cacheProvider;
}