cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Rosen" <a...@cti2.com>
Subject RE: Cachable Readers
Date Wed, 07 Aug 2002 09:07:12 GMT
Ok,

I'm using cocoon 2.0.3.
I'm writing a class extending AbstractReader, and implementing Cacheable.
When a Reader is used, the order the methods are called is:
getMimeType()
getLastModified()
generateValidity()

Thus, getLastModified() & generateValidity() are called on the 
new reader created, and not on the "right" reader that is known
only after the validity check.

I hope i explained myself better this time.

Thanks
Amir


> -----Original Message-----
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> Sent: Tuesday, August 06, 2002 8:37 AM
> To: cocoon-dev@xml.apache.org
> Subject: RE: Cachable Readers
> 
> 
> Hi Amir,
> 
> can you please be a little bit more precise - which version of
> Cocoon do you mean, to which class/method are you refering etc.
> 
> Thanks
> Carsten
> 
> > -----Original Message-----
> > From: Amir Rosen [mailto:amir@cti2.com]
> > Sent: Monday, August 05, 2002 5:58 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: RE: Cachable Readers
> >
> >
> > Just wanted to add that i think this should be the same for 
> getMimeType().
> >
> > (Still waiting for a response)
> >
> > > -----Original Message-----
> > > From: Amir Rosen
> > > Sent: Monday, August 05, 2002 2:29 PM
> > > To: cocoon-dev@xml.apache.org
> > > Subject: Cachable Readers
> > >
> > >
> > > Hi,
> > >
> > > I'm writing a new cachable reader, and i notice that
> > > getLastModified() is called before generateValidity().
> > > I think getLastModified() should be called on the cached
> > > reader if it is used to generate(), and not on the new reader
> > > instance, thus the validity check should be done before
> > > calling getLastModified().
> > >
> > > Am I right (or, why not?)?
> > >
> > > Thanks,
> > >
> > > Amir Rosen
> > > CTI Squared
> > > amir@cti2.com
> > > +972-9-9605200 (258)
> > >
> > >
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message