[infinispan-dev] Too late for an 5.0 API change?

Mircea Markus mircea.markus at jboss.com
Tue Jul 19 08:16:05 EDT 2011


This is isolated and won't break API compatibility so I think it makes sense.

On 19 Jul 2011, at 09:50, Galder Zamarreño wrote:

> Hi all,
> 
> What do people think of changing the addListener() APIs to be more fluent?
> 
> We could either:
> 
> 1. Change Listenable to be Listenable<T> and then have:
> 
>    <T> addListener(Object listener);
> 
> So, implementers such as EmbeddedCacheManager would implement Listenable<EmbeddedCacheManager> and so would implement:
> 
>    EmbeddedCacheManager addListener(Object listener);
> 
> 2. Or, more simply, have Listenable define:
> 
>    Object addListener(Object listener);
> 
> and EmbeddedCacheManager using covariants to implement:
> 
>    EmbeddedCacheManager addListener(Object listener);
> 
> Btw, the same would apply to removeListener.
> 
> 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




More information about the infinispan-dev mailing list