users@grizzly.java.net

Re: separate the 'intercepting filter' pattern?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 07 May 2009 10:01:08 -0400

Salut,

falcon wrote:
> Hi Jeanfrancois,
> I added it here: https://grizzly.dev.java.net/issues/show_bug.cgi?id=581

Thanks!

>
> 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 ;)

Yes we are/will work on it :-) This is our priority!

>
> 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.

No I think that would be a good idea to explore. As usual, patch are
welcome :-)

>
> In any case, thanks for the quick response. I'm very excited about a
> modular protocolchain!

You are welcome!

-- Jeanfrancois

>
>
> 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
>>
>>
>>
>