Joel Crisp writes: > > Hi > > I've noticed that ATTR_URL is a computed attribute, however I've yet to > actually track down where it is computed... Is it a obsolete attribute ? No it's not. > If not, presumably I have to overload the unpickleInstance method to > re-calculate it from the parent's URL and my identifier - does this have > to be done for any resource using it (ATTR_URL that is) ? ContainerResource are reponsible for providing to their children (at init time), their URL, eg in the DirectoryResource, the code looks like: DirectoryResource:createDefaultResource(..) { ... Hashtable defs = new Hashtable(10) ; defs.put("parent", this); defs.put("resource-store", children) ; defs.put("server", getServer()) ; defs.put("url", getURL() + name); // HERE ! ... } AnselmReceived on Tuesday, 3 December 1996 04:26:30 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:59:46 GMT