Hi Piyush,

I have considered 2) when designing the Application class, I called it
nested applications. But, I came to the conclusion that this was not
required. As a VirtuaHost is a Router, you can attach several Applications
to it with overriding URI namespaces. For example:

        VirtualHost vh = new VirtualHost(...);
        vh.attach("/root/app1", app1);
        vh.attach("/root/app1/app2", app2);

This is possible thanks to the default routing mode (BEST_MATCH). 

Concerning your point 1), I don't see the use cases for it. Do you want to
share some kind of state between the applications? Can you give more details
about your requirement?

Best regards,
Jerome  

> -----Message d'origine-----
> De : Piyush Purang [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 7 décembre 2006 10:56
> À : [email protected]
> Objet : Applications
> 
> Hello,
> 
> I have been thinking of what to expect from restlet applications. Here
> are two requirements that I can come up with that would be really
> great ...
> 
> 1) A common application context for sharing between applications.
> 2) Hierarchical applications. In order to be able to selectively
> overrride resources/functionality  and extend functionality.
> 
> Any thoughts to this regard?
> 
> Cheers
> Piyush

Reply via email to