HHH-5489 - Deprecate jbosscache as a second level cache provider, in favor of infinispan
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20294 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
0b6e54aa82
commit
487ccb38d0
|
@ -43,6 +43,8 @@ import org.hibernate.cfg.Environment;
|
|||
import org.hibernate.cfg.Settings;
|
||||
import org.hibernate.util.PropertiesHelper;
|
||||
import org.jboss.cache.DefaultCacheFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* {@link RegionFactory} that uses one or more JBoss Cache instances for
|
||||
|
@ -63,10 +65,14 @@ import org.jboss.cache.DefaultCacheFactory;
|
|||
* <code>CacheInstanceManager</code> implementations.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Favor Infinispan integration; see HHH-5489 for details.
|
||||
*
|
||||
* @author Steve Ebersole
|
||||
* @author Brian Stansberry
|
||||
*/
|
||||
@Deprecated
|
||||
public class JBossCacheRegionFactory implements RegionFactory {
|
||||
private static final Logger log = LoggerFactory.getLogger( JBossCacheRegionFactory.class );
|
||||
private CacheInstanceManager cacheInstanceManager;
|
||||
|
||||
/**
|
||||
|
@ -83,6 +89,7 @@ public class JBossCacheRegionFactory implements RegionFactory {
|
|||
* Create a new JBossCacheRegionFactory.
|
||||
*/
|
||||
public JBossCacheRegionFactory() {
|
||||
log.warn( "Integration with JBossCache is deprecated in favor of Infinispan" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -93,6 +100,7 @@ public class JBossCacheRegionFactory implements RegionFactory {
|
|||
*/
|
||||
public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager) {
|
||||
this.cacheInstanceManager = cacheInstanceManager;
|
||||
log.warn( "Integration with JBossCache is deprecated in favor of Infinispan" );
|
||||
}
|
||||
|
||||
public CacheInstanceManager getCacheInstanceManager() {
|
||||
|
|
|
@ -25,6 +25,9 @@ package org.hibernate.cache.jbc;
|
|||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.hibernate.cache.jbc.builder.JndiMultiplexingCacheInstanceManager;
|
||||
|
||||
/**
|
||||
|
@ -42,9 +45,12 @@ import org.hibernate.cache.jbc.builder.JndiMultiplexingCacheInstanceManager;
|
|||
* {@link JndiMultiplexingCacheInstanceManager} for configuration details.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Favor Infinispan integration; see HHH-5489 for details.
|
||||
*
|
||||
* @author Brian Stansberry
|
||||
* @version $Revision$
|
||||
*/
|
||||
@Deprecated
|
||||
public class JndiMultiplexedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,9 +38,12 @@ import org.hibernate.cache.jbc.builder.JndiSharedCacheInstanceManager;
|
|||
* configuration property as the name to look up.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Favor Infinispan integration; see HHH-5489 for details.
|
||||
*
|
||||
* @author Brian Stansberry
|
||||
* @version $Revision$
|
||||
*/
|
||||
@Deprecated
|
||||
public class JndiSharedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,9 +42,12 @@ import org.hibernate.cache.jbc.builder.MultiplexingCacheInstanceManager;
|
|||
* {@link MultiplexingCacheInstanceManager} for configuration details.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Favor Infinispan integration; see HHH-5489 for details.
|
||||
*
|
||||
* @author Brian Stansberry
|
||||
* @version $Revision$
|
||||
*/
|
||||
@Deprecated
|
||||
public class MultiplexedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,6 +28,8 @@ import java.util.Properties;
|
|||
import org.hibernate.cache.jbc.builder.JndiSharedCacheInstanceManager;
|
||||
import org.hibernate.cache.jbc.builder.SharedCacheInstanceManager;
|
||||
import org.jboss.cache.DefaultCacheFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* {@link JBossCacheRegionFactory} that uses
|
||||
|
@ -41,9 +43,12 @@ import org.jboss.cache.DefaultCacheFactory;
|
|||
* configuration property.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated Favor Infinispan integration; see HHH-5489 for details.
|
||||
*
|
||||
* @author Brian Stansberry
|
||||
* @version $Revision$
|
||||
*/
|
||||
@Deprecated
|
||||
public class SharedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue