You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by peter royal <pr...@apache.org> on 2007/11/12 18:31:40 UTC

Re: Type Safe handlers and filters

On Oct 24, 2007, at 1:56 PM, Brian McCallister wrote:
> A stronger approach would be to explicitly check the generic type  
> via reflection and raise an exception at bind() or connect() time.  
> In this case the In and Out types for the filter chain would be  
> compared for compatibility, and the final out on the filter chain  
> compared to the In on the handler. This would allow for raising an  
> illegal state exception describing the message type problem as early  
> as possible. Once running implicit casts are used for actual  
> dispatch so as not to impact performance.
>
> Thoughts?

sounds great! and of course you know the drill... patches welcome! :)

-pete


-- 
proyal@apache.org - http://fotap.org/~osi