Hi All,

I'm looking for the best way to dynamically build a filter chain using the 
whiteboard pattern in an OSGi based system.  The main issue appears to be how 
to specify the order of the filters in the chain.  In an OSGi system, it should 
be possible to insert a filter in the chain by adding a bundle to the system.  
How do you know where in the chain to insert the filter?  My current thoughts 
are for the filter provider to supply an integer weight to the filter and the 
filter chain would be assembled according to the weight.  Filters with the same 
weight would be ordered randomly, relative to each other.

I'd appreciate any feedback on this idea or even alternate ideas.  Once I think 
I have a reasonable solution, I'll add this support to the Restlet / OSGi 
project ( 
http://code.google.com/a/eclipselabs.org/p/restlet-integration-with-equinox/ ) 
which will then enable security.

Thanks.

Bryan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2710827

Reply via email to