[infinispan-issues] [JBoss JIRA] Commented: (ISPN-482) CacheManager change to generics interface missing methods. Cannot hook it up to Hibernate 3.5.x
Mircea Markus (JIRA)
jira-events at lists.jboss.org
Fri Jun 11 04:12:38 EDT 2010
[ https://jira.jboss.org/browse/ISPN-482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12535097#action_12535097 ]
Mircea Markus commented on ISPN-482:
------------------------------------
DefaultCacheManager also needs to implement CacheManager (the new one, otherwise following assignment would not work:
CacheManager manager = new DefaultCacheManager(configLoc, false);
Also, instead of AbstractCacheManager I would prefer CacheContainer:
- this is an interface, so it's abstract by nature
- this is a cache container, as it only expose geters for the cache.
> 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
More information about the infinispan-issues
mailing list