Alex Karasulu wrote:
On Sat, Oct 4, 2008 at 5:45 AM, Emmanuel Lecharny <[EMAIL PROTECTED]>wrote:

Hi guys,

today I found a mail on the users ML :


Erix Yao wrote:

Why the NextFilter interface is defined?
What is its special purpose?
It has almost the same interface with IoFilter, why define them again ?
Or we can let NextFilter extends IoFilter.


This is quite an interesting mail. A perfect demonstration on the
complexity of this part of MINA, which is, IMHO, overworked.

There is no need of those extra structure, as we can provide the very same
behavior (ie, dynamic filter addition, message chaining, etc) whithout
having to deal with such useless interfaces.

I suggest we think twice about how to simplify the chain we have in order
to make it easier to use for those who are new comers - and also for those
who are already using MINA, not talking about those who are developing MINA
-.

thoughts ?


I do think it gets problematic especially when the chain is long and one is
debugging. It can also be confusing as it is to this user.
Even with 2 filters only, it's a nightmare to debug.
However it does
perform well.
Who cares ? I mean, that's the least important point, if the design is flawed. We can do it much clear _and_ fast. Strange enough, good design is often fast, when the opposite is not exactly obvious :)
Perhaps we can experiment with different ways to lessen the
complexity in a copy within the sandbox.
yeah, sure. This is something we can do before 2.0 is out, as it's not impacting our users too much.

Thanks !


--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org


Reply via email to