[infinispan-issues] [JBoss JIRA] Reopened: (ISPN-905) Enhance cache management methods on EmbeddedCacheManager

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu Mar 3 10:28:46 EST 2011


     [ https://issues.jboss.org/browse/ISPN-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño reopened ISPN-905:
-----------------------------------



Scala getting confused with new getCache method:

{code}Compiling 35 source files to /root/.hudson/jobs/Infinispan-master-JDK6-tcp/workspace/server/core/target/classes at 1299162488872
[ERROR] /root/.hudson/jobs/Infinispan-master-JDK6-tcp/workspace/server/core/src/main/scala/org/infinispan/server/core/AbstractProtocolServer.scala:108: error: ambiguous reference to overloaded definition,
[INFO] both method getCache in trait EmbeddedCacheManager of type [K,V](x$1: java.lang.String,x$2: Boolean)org.infinispan.Cache[K,V]
[INFO] and  method getCache in trait CacheContainer of type [K,V]()org.infinispan.Cache[K,V]
[INFO] match expected type ?
[INFO]    def startDefaultCache = cacheManager.getCache{code}

> Enhance cache management methods on EmbeddedCacheManager
> --------------------------------------------------------
>
>                 Key: ISPN-905
>                 URL: https://issues.jboss.org/browse/ISPN-905
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Core API
>    Affects Versions: 4.2.0.Final
>            Reporter: Patrick McFarland
>            Assignee: Galder Zamarreño
>             Fix For: 5.0.0.BETA1, 5.0.0.Final
>
>
> These should include:
> {code:borderStyle=solid}
> boolean cacheExists(String cache)
> // Old: Cache<?, ?> getCacheIfExists(String cache)
> Cache<?, ?> getCache(String cache, boolean createIfAbsent)
> boolean remove(String Cache)
> {code}
> Original request:
> {quote}
> There seems to be no ability to check if a populated cache exists through both CacheManager and through Cache (=is this still a valid handle) and to get a cache if it exists.
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list