You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ugo Cei <ug...@apache.org> on 2004/04/08 00:12:20 UTC

Validity question

Excuse me if this is a FAQ, but what is a generator implementing the 
o.a.c.caching.CacheableProcessingComponent interface expected to return 
as the value of the "getValidity" method, in case the generated content 
never changes?

	TIA,

		Ugo


Re: Validity question

Posted by Ugo Cei <ug...@apache.org>.
Il giorno 08/apr/04, alle 00:18, Upayavira ha scritto:

> Ugo Cei wrote:
>
>> Excuse me if this is a FAQ, but what is a generator implementing the 
>> o.a.c.caching.CacheableProcessingComponent interface expected to 
>> return as the value of the "getValidity" method, in case the 
>> generated content never changes?
>
> It can return NOPValidity.SHARED_INSTANCE if you want to say that it 
> is okay to cache this component.
>
> This can be found in the package 
> org.apache.excalibur.source.impl.validity
>
> Regards, Upayavira
>
>
Thanks.

	Ugo


Re: Validity question

Posted by Upayavira <uv...@upaya.co.uk>.
Ugo Cei wrote:

> Excuse me if this is a FAQ, but what is a generator implementing the 
> o.a.c.caching.CacheableProcessingComponent interface expected to 
> return as the value of the "getValidity" method, in case the generated 
> content never changes?

It can return NOPValidity.SHARED_INSTANCE if you want to say that it is 
okay to cache this component.

This can be found in the package org.apache.excalibur.source.impl.validity

Regards, Upayavira