[jboss-jira] [JBoss JIRA] Updated: (JBCACHE-941) org.jboss.cache.Caches, which allows for users to access a Cache using various collection interfaces

Elias Ross (JIRA) jira-events at jboss.com
Mon Jan 22 15:38:53 EST 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-941?page=all ]

Elias Ross updated JBCACHE-941:
-------------------------------

    Attachment: CachesTest.java

Updated

> org.jboss.cache.Caches, which allows for users to access a Cache using various collection interfaces
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-941
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-941
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Elias Ross
>         Assigned To: Manik Surtani
>         Attachments: Caches.java, Caches.java, CachesTest.java, CachesTest.java
>
>
> The java.util.Collections utility class supplies useful methods for dealing with legacy interfaces and wrapping collection classes for concurrency, type safety, read-only, etc.
> In a simiilar vein, I wrote a "Caches" class that returns java.util.Map instances for a Node, which allow data to be modified through the standard Map interface.
> This I expect to be extremely useful for allowing uses to integrate their existing application with JBoss Cache, and will eliminate some of the confusion of using a new API and they can use the API they know best. Users also often demand an API which is "generic" so that their code is not tied to a particular vendor.
> There are basically two methods in Caches, one looks like this:
> Cache cache = DefaultCacheFactory.getInstance().createCache();
> Map m = Caches.asMap(cache);
> m.put("foo", "bar");
> The API and examples explain themselves.
> "Caches" could also include other useful methods for printing or reporting.
> Note that this functionality could be considered duplicated from PojoCache...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list