Strengthening setup() contract

2003-03-19 Thread Jeff Turner
Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the codeSourceResolver/code, objectModel * codeMap/code, the source and sitemap codeParameters/code

Re: Strengthening setup() contract

2003-03-19 Thread Vadim Gritsenko
Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the codeSourceResolver/code, objectModel * codeMap/code, the source and sitemap

Re: Strengthening setup() contract

2003-03-19 Thread Konstantin Piroumian
From: Jeff Turner [EMAIL PROTECTED] Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the codeSourceResolver/code, objectModel * codeMap/code,

Re: Strengthening setup() contract

2003-03-19 Thread Sylvain Wallez
Vadim Gritsenko wrote: Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the codeSourceResolver/code, objectModel * codeMap/code, the

Re: Strengthening setup() contract

2003-03-19 Thread Jeff Turner
On Wed, Mar 19, 2003 at 09:29:05AM -0500, Vadim Gritsenko wrote: Jeff Turner wrote: ... void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) ... If there's no objections, I would like to: - assert in the Javadoc that 'src' will never be null Some

Re: Strengthening setup() contract

2003-03-19 Thread Sylvain Wallez
Jeff Turner wrote: At that level, there isn't enough info to provide a user-friendly error message. I think the best solution is to add a check in the treeprocessor's ReadNodeBuilder. I've now got it displaying: Reader at

Re: Strengthening setup() contract

2003-03-19 Thread Stefano Mazzocchi
Jeff Turner wrote: Hi, Generator, Reader and Transformer all inherit from SitemapModelComponent, which declares the setup() method: public interface SitemapModelComponent extends Component { /** * Set the codeSourceResolver/code, objectModel * codeMap/code, the source and sitemap

Re: Strengthening setup() contract

2003-03-19 Thread Jeff Turner
On Wed, Mar 19, 2003 at 04:40:20PM +0100, Sylvain Wallez wrote: Jeff Turner wrote: At that level, there isn't enough info to provide a user-friendly error message. I think the best solution is to add a check in the treeprocessor's ReadNodeBuilder. I've now got it displaying: Reader at