cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <coc...@lojjic.net>
Subject Re: Caching and actions: execution order
Date Tue, 09 May 2006 02:48:00 GMT
Tilman Rassy wrote:
> Hello,
> 
> I have a question concerning the order of execution of the act method of an 
> action and the isValid and getKey methods of cacheable components. Consider a 
> pipeline of the following form:
> 
> <map:match ...>
>   <map:act ...>
>     <map:generate .../>
>     <map:transform .../>
>     <map:serialize .../>
>   </map:act>
>   <map:read .../>
> </map:match> 
> 
> Assume the generater, transformer, and reader are all cacheable. Is then first 
> the act method of the action called, and are then the isValid and getKey 
> methods called, or are the latter called first?

That is correct, the act method has to be called first because its
return value (Map or null) determines whether the sub-components are
part of the pipeline at all.  It's very much like a matcher in that respect.

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


Mime
View raw message