[infinispan-dev] Leak of impl detail? Listener callbacks receiving MarshalledValues if lazy deserialization is on

Galder Zamarreno galder at redhat.com
Thu Oct 29 11:23:54 EDT 2009


FYI: https://jira.jboss.org/jira/browse/ISPN-242

On 10/29/2009 04:18 PM, Manik Surtani wrote:
> 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
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list