cache compiled xpl

classic Classic list List threaded Threaded
2 messages Options
hcr
Reply | Threaded
Open this post in threaded view
|

cache compiled xpl

hcr

Hello, All!
   I want to cache compiled xpl. For example:
In PipelineProcessor.java:
    createConfigFromAST(astPipeline)
I want cache the compiled astPipeline result 'PipelineConfig'. It will reload the cached pipelineConfig when load same astPipeline. Is it "optimized" xpl ? How can I do it?



网易邮箱,中国第一大电子邮件服务商


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: cache compiled xpl

Erik Bruchez
Administrator
Mmh, caching in Orbeon Forms pipelines is tricky, unfortunately. You  
can use the processor API method readCacheInputAsObject(), which reads  
an input and allows you to create an object based on that input (e.g.  
could be a pipeline AST).

You will have to look in Orbeon Forms at the source code of processors  
using this method for examples.

-Erik

On Feb 16, 2009, at 5:33 PM, hechengrong wrote:

>
> Hello, All!
>    I want to cache compiled xpl. For example:
> In PipelineProcessor.java:
>     createConfigFromAST(astPipeline)
> I want cache the compiled astPipeline result 'PipelineConfig'. It  
> will reload the cached pipelineConfig when load same astPipeline. Is  
> it "optimized" xpl ? How can I do it?
>
>
> 网易邮箱,中国第一大电子邮件服务商
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws