- From: Edwin de Jong <e.dejong@exxellence.nl>
- Date: Thu, 18 Nov 2010 12:04:10 +0100
- To: Florent Georges <fgeorges@fgeorges.org>
- CC: XProc Dev <xproc-dev@w3.org>
Op 18-11-2010 11:39, Florent Georges schreef: > On 17 November 2010 13:12, Edwin de Jong wrote: >> I chose a wrapper class, wrapping com.xmlcalabash.core.XProcRuntime, >> adding references to the cached pipelines (XPipeline >> objects). > I don't quite understand. XPipeline is the object you set the > input on, and you read the output from (besides passing options > to, etc.) How can you cache such objects? How do you reset > them? (e.g. when you have to set some input ports) Perhaps my explanation was a bit pithy. Before reusing a pipeline, I call pipeline.reset() and pipeline.clearInputs("source"). Then the pipeline is back to its original state and can be used for another request. pipeline.reset() is recursively applied to all referenced pipelines. Regards, Edwin de Jong Met vriendelijke groet, Edwin de Jong Exxellence Group | www.exxellence.nl Bezoekadres: Welbergweg 80-84 | 7556 PE Hengelo (ov.) Postadres: Postbus 768 | 7550 AT Hengelo (ov.) Tel. +31 (74) 25 94 008 | fax. +31 (74) 25 66 424
Received on Thursday, 18 November 2010 11:05:00 UTC