可以使用COSDocument 2010/3/3 Andreas Lehmkühler <[email protected]>: > Hi, > > Gesendet: Mi, 03. Mrz 2010 > Von: Johannes Koch<[email protected]> > >> 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? > 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 >
-- nisen(English Name)/倪森(Chinese Name) Blog: http://nisen.javaeye.com
