Example usage for org.hibernate.cfg AvailableSettings CACHE_KEYS_FACTORY

List of usage examples for org.hibernate.cfg AvailableSettings CACHE_KEYS_FACTORY

Introduction

In this page you can find the example usage for org.hibernate.cfg AvailableSettings CACHE_KEYS_FACTORY.

Prototype

String CACHE_KEYS_FACTORY

To view the source code for org.hibernate.cfg AvailableSettings CACHE_KEYS_FACTORY.

Click Source Link

Document

Allow control to specify the org.hibernate.cache.spi.CacheKeysFactory impl to use.

Usage

From source file:org.infinispan.hibernate.cache.commons.InfinispanRegionFactory.java

License:LGPL

private CacheKeysFactory determineCacheKeysFactory(SessionFactoryOptions settings, Properties properties) {
    return settings.getServiceRegistry().getService(StrategySelector.class).resolveDefaultableStrategy(
            CacheKeysFactory.class, properties.get(AvailableSettings.CACHE_KEYS_FACTORY),
            DefaultCacheKeysFactory.INSTANCE);
}

From source file:org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.java

License:LGPL

private CacheKeysFactory determineCacheKeysFactory(SessionFactoryOptions settings, Map properties) {
    return settings.getServiceRegistry().getService(StrategySelector.class).resolveDefaultableStrategy(
            CacheKeysFactory.class, properties.get(AvailableSettings.CACHE_KEYS_FACTORY),
            DefaultCacheKeysFactory.INSTANCE);
}