[infinispan-dev] Leak of impl detail? Listener callbacks receiving MarshalledValues if lazy deserialization is on
Manik Surtani
manik at jboss.org
Thu Oct 29 11:18:09 EDT 2009
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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
More information about the infinispan-dev
mailing list