Hi Jeanfrancois,
I added it here:
https://grizzly.dev.java.net/issues/show_bug.cgi?id=581
I write algos and strategies for financial trading system. The several I
have worked with so far have uniformly had terrible APIs. In order to
express simple logic, I have to write hundreds, if not thousands of lines of
code. Quite a lot of it can be simplified using a pattern such as
intercepting filter (or pipes and chains).
By the way, I started playing around with Grizzly 2.0 today. I am looking
forward to more documentation ;)
As far as I can tell, the ProtocolChain in Grizzly doesn't try to be very
type safe. Wouldn't it be helpful to use generics to signify the inputs and
outputs of filters? I admit, I haven't looked at it enough to get a very
good feel for it yet, so I may be missing something.
In any case, thanks for the quick response. I'm very excited about a
modular protocolchain!
Jeanfrancois Arcand-2 wrote:
>
> Salut,
>
> falcon wrote:
>> Have the grizzly folks thought of separating the 'intercepting filter'
>> code
>> into its own little project?
>>
>> This is a fantastically useful pattern for server writers, which is why
>> grizzly, netty, mina and others use it. It would be great to remove the
>> networking specific code and make it available as a separate jar.
>> Contributers could then write different concurrency strategies, etc.
>>
>> Grizzly is already very modular, this would just be another module!
>
> I like the idea...Mainly, you would lihe the ProtocolChain/Filter to
> leave in it's own module. Do you have a project that need such
> implementation? Just file an RFE here:
>
> https://grizzly.dev.java.net/issues/
>
> and I will try to add it to 1.9.16.
>
> Thanks!
>
> -- Jeanfrancois
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>
--
View this message in context: http://www.nabble.com/separate-the-%27intercepting-filter%27-pattern--tp23417385p23419136.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.