Hi Rob,

> I kind of doubt "dynamically" -- but in practice, we 
> currently have a number of places that this happens in the 
> initialization sequence, and many of them are kind of clumsy. 

As I don't see any particular drawback, I would also prefer to mark the
method 'synchronized' for completeness purpose for this method and similar
ones.
 
> ServerServlet, in particular, needs a good way of doing this; 
> in idiomatic use it creates its own Component and initializes 
> the Application whose class name you pass as an 
> initialization parameter.  Unless I've missed something 
> obvious (wouldn't be the first time), it's messy to get this 
> component and add in any extra protocols needed.  Maybe we 
> should add some extra servlet initialization parameters to 
> help do it. 

I'm in process of adding the ability to specify the component to instantiate
via a Servlet parameter. This is useful for multi-applications components as
well as for specifying client connectors. See related issue:
http://restlet.tigris.org/issues/show_bug.cgi?id=407

I'd also like to leverage an XML configuration mechanism later on:
http://restlet.tigris.org/issues/show_bug.cgi?id=164

Best regards,
Jerome  

Reply via email to