On Nov 26, 2009, at 2:48 AM, Emmanuel Lecharny wrote:
Ashish wrote:
Have started looking into the FilterChain implementation and here are
some initial thoughts
1. Rename IoFilterChain as IoChannel - it gives a more clear picture
and is easy to understand like imagine as a Channel with multiple
stages aka IoFilters.
This came while I was drawing on paper to design something.
Well, I would rather keep the current name. The 'filter' terminology
is quite commonly accepted for such a pattern. Servlet uses it (http://java.sun.com/blueprints/patterns/InterceptingFilter.html
), and it also refers to the CoR pattern (http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern
).
Also, one should avoid overlap w/ NIO channels, imo.
Regards,
Alan