Thanks
to all who replied on this. After a discussion on the code list, it
became clear that the Restlety solution to configuring resources is to
use the Context. The Context has a ConcurrentMap of attributes,
described as so:
So, that's it! The nice thing about contexts, too, is that they pass through restlets along the way. So, even if you configure your Application context in a certain way, you can apply filters or whatnot along the way to adapt the configuration. For example, a DebuggingFilter might enable all the configuration aspects that have to do with debugging. It's then easy to add/remove such a filter, even on-the-fly, without reconfiguring the whole application.
-Tal |
- Re: Resource factories Rob Heittman
- Re: Resource factories Tal Liron
- Re: Resource factories David Bordoley
- Re: Resource factories Rhett Sutphin
- Re: Resource factories Rob Heittman
- Re: Resource factories Tal Liron
- Resource factories Tim Peierls
- Re: Resource factories Tal Liron
- Re: Resource factories Tal Liron
- Re: Resource factories Donald S Strong
- Re: Resource factories Tal Liron
- RE: Resource factories Jerome Louvel
- Re: Resource factories Tim Peierls