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. However it does perform well. Perhaps we can experiment with different ways to lessen the complexity in a copy within the sandbox. Alex
