[
https://jira.jboss.org/browse/ISPN-482?page=com.atlassian.jira.plugin.sys...
]
Manik Surtani updated ISPN-482:
-------------------------------
Assignee: Mircea Markus (was: Manik Surtani)
Fix Version/s: 4.1.0.CR1
Complexity: Low
This has to do with some recent refactoring. This will need to be corrected to allow for
proper backward-compatibility:
1) rename the current CacheManager to AbstractCacheManager
2) create a new class called CacheManager that extends EmbeddedCacheManager for backward
compat.
/** for backward compatibility ONLY. **/
@Deprecated public final class CacheManager extends EmbeddedCacheManager {} // final so no
one extends it
CacheManager change to generics interface missing methods. Cannot
hook it up to Hibernate 3.5.x
------------------------------------------------------------------------------------------------
Key: ISPN-482
URL:
https://jira.jboss.org/browse/ISPN-482
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.1.0.BETA2
Reporter: Gisella Saavedra
Assignee: Mircea Markus
Priority: Blocker
Fix For: 4.1.0.CR1
The latest BETA2 release has a change for core interface
org.infinispan.manager.CacheManager. Most of the methods are missing (from BETA1 and
4.0).
The hibernate class InfinispanRegionFactory fails to create the CacheManager.
manager.getGlobalConfiguration() does not exist!!!!!!!!!!!!!!!!!
-------------------------
protected CacheManager createCacheManager(Properties properties) throws CacheException
{
try {
String configLoc = PropertiesHelper.getString(INFINISPAN_CONFIG_RESOURCE_PROP,
properties, DEF_INFINISPAN_CONFIG_RESOURCE);
CacheManager manager = new DefaultCacheManager(configLoc, false);
String globalStats =
PropertiesHelper.extractPropertyValue(INFINISPAN_GLOBAL_STATISTICS_PROP, properties);
if (globalStats != null) {
manager.getGlobalConfiguration().setExposeGlobalJmxStatistics(Boolean.parseBoolean(globalStats));
}
manager.start();
return manager;
} catch (IOException e) {
throw new CacheException("Unable to create default cache manager",
e);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira