Hi Andreas,

Andreas Lehmkühler schrieb:
Gesendet: Mi, 03. Mrz 2010 Von: Johannes Koch<[email protected]>
Is the PD layer supposed to cache data (for performance issues)?
There may be some cases where data will be cached, but it wasn't intended.

If data is changed via methods in the PD layer, how are these changes propagated to other PD objects? Do we need an observer mechanism for data changes?
I don't think so. Data changes should be writen to the COS model by the PD 
layer.

How will caching PD objects synchronize their cached PD objects with underlying COS data changed by other PD objects?

At [1] you will find a brief description of the relation between the COS and 
the PD model.

BR
Andreas Lehmkühler

[1] http://pdfbox.apache.org/userguide/index.html

| Disadvantages:
|
|     * Object caching is not done in the PD Model classes For example,
|       each call to PDPage.getMediaBox() will return a new PDRectangle
|       object, but will contain the same underlying COSArray.

--
Johannes Koch
Fraunhofer Institute for Applied Information Technology FIT
Web Compliance Center
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

Reply via email to