Search in sources :

Example 1 with SimpleStrategyRegistrationImpl

use of org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl in project hibernate-orm by hibernate.

the class StrategyRegistrationProviderImpl method getStrategyRegistrations.

@Override
@SuppressWarnings("unchecked")
public Iterable<StrategyRegistration> getStrategyRegistrations() {
    final List<StrategyRegistration> strategyRegistrations = new ArrayList<StrategyRegistration>();
    strategyRegistrations.add(new SimpleStrategyRegistrationImpl(RegionFactory.class, EhCacheRegionFactory.class, "ehcache", EhCacheRegionFactory.class.getName(), EhCacheRegionFactory.class.getSimpleName(), // legacy impl class name
    "org.hibernate.cache.EhCacheRegionFactory"));
    strategyRegistrations.add(new SimpleStrategyRegistrationImpl(RegionFactory.class, SingletonEhCacheRegionFactory.class, "ehcache-singleton", SingletonEhCacheRegionFactory.class.getName(), SingletonEhCacheRegionFactory.class.getSimpleName(), // legacy impl class name
    "org.hibernate.cache.SingletonEhCacheRegionFactory"));
    return strategyRegistrations;
}
Also used : RegionFactory(org.hibernate.cache.spi.RegionFactory) ArrayList(java.util.ArrayList) StrategyRegistration(org.hibernate.boot.registry.selector.StrategyRegistration) SimpleStrategyRegistrationImpl(org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl)

Aggregations

ArrayList (java.util.ArrayList)1 SimpleStrategyRegistrationImpl (org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl)1 StrategyRegistration (org.hibernate.boot.registry.selector.StrategyRegistration)1 RegionFactory (org.hibernate.cache.spi.RegionFactory)1