Yes, good point.
The event instance should be able to detect a MarshalledValue and
return the actual key.
On 29 Oct 2009, at 15:11, Galder Zamarreno wrote:
Hi,
I've noticed that when lazy deserialization is on and you use a user
defined key, notification callbacks receive MarshalledValue instances
within event.getKey() rather than instances of the user defined class.
This forces listener code to be aware whether lazy deserialization is
enabled or not, hence we're leaking an implementation detail to the
client code.
I think these callbacks should provide user defined class instances
regardless of whether lazy deserialization is on or not.
Thoughts?
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org