On Fri, Jan 16, 2015 at 5:20 AM, Thierry Boileau <tboil...@restlet.com> wrote:
> Here is my first refactoring: > public class GaeThingServerResource extends SelfInjectingServerResource > implements ThingResource { > ... > @Override > public ThingItem doInit() { > id = Long.parseLong(getAttribute("thingitemid")); > // You may check that the resource really exist > // setExisting(true or false); > } > ... > } > Side note: If GaeThingServerResource is to extend SelfInjectingServerResource, then doInit should call super.doInit(). (I don't see any @Inject annotations, so currently there's no point in extending SelfInjectingServerResource.) --tim ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3094360