Re: [mina] Filter management (was Spring Integration)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > Re: [mina] Filter management (was Spring Integration)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [mina] Filter management (was Spring Integration)  
Trustin Lee


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-12-05 07:45 AM

Hi Jose,

2005/11/11, Jose Alberto Fernandez <jalberto-FQMVDHFwfny6lNtOUNzE6A@public.gmane.org>:[vbcol
=seagreen]
>
> Niklas provided a preconstructed IoFilterChain, I am passing the code to
> construct the IoFilterChain. That is the only difference. Should the perso
n
> doing the binding know which filters are needed for a protocol provided in
> some other package? Or should that be expressed as part of the code in the
> package providing the protocol implementation?
>[/vbcol]
Now I see the main difference between the two approaches. Let's reanalyze
the two:

* Jose's approach

The problem here is that IoFilterChain contains some transport-type-specific
code so we cannot simply create and construct it. So a new interface
'IoFilterChainBuilder' (I think 'builder' is better than manager here) is
introduced.

* Niklas's approach

His approach has advantage over Jose's one because it doesn't introduce any
new interface that a user has to learn. But IoFilterChain contains some
transport-type-specific code as I mentioned above. We'll have to create an
implementation of IoFilterChain which is independent from any
transport-type. It should be easy and will be reusable because this chain
will be copied into the internal filter chain implementation.

I think Niklas's approach is better because it doesn't introduce a new
interface and Jose's approach can be implemented as a simple factory. WDYT?



--
what we call human nature is actually human habit
--
http://gleamynode.net/






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:53 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register