pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Lehmkühler" <andr...@lehmi.de>
Subject Re: Re: Relation between COS and PD model
Date Wed, 03 Mar 2010 13:17:26 GMT
Hi,

Gesendet: Mi, 03. Mrz 2010
Von: Johannes Koch<johannes.koch@fit.fraunhofer.de>

> Hi Andreas,
> 
> Andreas Lehmkühler schrieb:
> > Gesendet: Mi, 03. Mrz 2010 
> > Von: Johannes Koch<johannes.koch@fit.fraunhofer.de>
> >> 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?
I don't remember a concrete example, but I'm sure that there are a few. But I think the
solution is obvious. You just have to reinitialize your cached value when calling the 
corresponding setter.

BR
Andreas Lehmkühler

Mime
View raw message