@SuppressWarnings("unchecked")
public Iterable<Availability> getAvailabilities() {
final List<Availability> availabilities = new ArrayList<Availability>();
availabilities.add(
new SimpleAvailabilityImpl(
RegionFactory.class,
EhCacheRegionFactory.class,
"ehcache",
EhCacheRegionFactory.class.getSimpleName(),
"org.hibernate.cache.EhCacheRegionFactory" // legacy impl class name
)
);
availabilities.add(
new SimpleAvailabilityImpl(
RegionFactory.class,
SingletonEhCacheRegionFactory.class,
"ehcache-singleton",
SingletonEhCacheRegionFactory.class.getSimpleName(),
"org.hibernate.cache.SingletonEhCacheRegionFactory" // legacy impl class name