Vadim Gritsenko wrote:


[1] http://marc.theaimsgroup.com/?t=109586359200003&r=1

Yeah, this is where I got the idea. Scanning trunk, it doesn't look like you've actually checked anything in? However, I don't believe the technique you proposed will always work. The problem is, some generators create objects in the setup method that is then used in the generate method (I havn't looked at transformers too much so I don't know if they suffer from the same issue). Thus, each generator/transformer really needs an associated per-instance object.
The FileGenerator is an example that does that, so if you have indeed made it work I'd really love to see how.


I had thought of changing the signature of setup() to return an object and generate() to take the object as a parameter to solve that problem. Of course, the validity methods would also need access to it.

Frankly I haven't given this a lot of thought beyond the thread you mentioned and the two paragraphs above.

Ralhp



Reply via email to