[infinispan-dev] [Pull Request] Modular Classloading Compatibility
Thomas P. Fuller
thomas.fuller at coherentlogic.com
Mon May 2 10:50:18 EDT 2011
I like this solution.
T
________________________________
From: Manik Surtani <manik at jboss.org>
To: infinispan -Dev List <infinispan-dev at lists.jboss.org>
Sent: Mon, 2 May, 2011 15:10:03
Subject: Re: [infinispan-dev] [Pull Request] Modular Classloading Compatibility
On 1 May 2011, at 13:38, Pete Muir wrote:
>>> As in, user API? That's a little intrusive... e.g., put(K, V, cl) ?
>>
>> Not for put, since you have the class, just get, and I was thinking
>> something more like:
>>
>> Foo foo = getUsing(key, Foo.class)
>
> This would be a pretty useful addition to the API anyway to avoid user casts.
Maybe as an "advanced" API, so as not to pollute the basic API? A bit like:
Foo f = cache.getAdvancedCache().asClass(Foo.class).get(key);
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Lead, Infinispan
http://www.infinispan.org
_______________________________________________
infinispan-dev mailing list
infinispan-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20110502/e45e45f8/attachment.html
More information about the infinispan-dev
mailing list