Hi Sean, Thanks for all the great feed-back and support!
The standard attributes are defined in Context.getAttributes() Javadocs. Currently there is just one. Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Sean Landis > Envoyé : vendredi 26 janvier 2007 17:23 > À : [email protected] > Objet : Re: Newbie question on the Resource changes in RC3 > > Hi Jerome, > > Jerome Louvel <contact <at> noelios.com> writes: > > Hi Sean, > > > > I understand your concerns. Here is an alternative, from > your Resource, to > > retrieve the parent application: > > MyApplication app = > > > (MyApplication)getContext().getAttributes().get("org.restlet.a > pplication"); > > > > BTW, I've just added a new constant KEY to Application in > SVN to simplify > > to: > > MyApplication app = > > (MyApplication)getContext().getAttributes().get(Application.KEY); > > > > Then, once you have your parent application, you can access > to all your > > custom properties, in a type safe way. I hope this looks > better to you than > > using attributes to store your shared state. > > This is definitely a useful improvement, although in general > I prefer to avoid > the use of context. By promoting a new variable as standard, > we reduce the risks I mentioned. > > BTW, where are the standard context variables defined? > > Thanks for all your effort and responsiveness! > > Sean

