You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2008/08/17 18:11:11 UTC

[DAISY] Updated: CacheEventAction

A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1494.html

Document ID: 1494
Branch: main
Language: default
Name: CacheEventAction (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 8/17/08 4:10:50 PM
Updated by: Lukas Lang

A new version has been created, state: draft

Parts
=====

Long description
----------------
This part has been added.
Mime type: text/xml
File name: null
Size: 920 bytes
Content:
<html>
<body>

<h3>Example</h3>

<p>This sample is built on top of the EventAwareGenerator sample.</p>

<pre>  &lt;map:pipelines&gt;   
    &lt;map:pipeline type="event-aware"&gt;
      &lt;map:match pattern="action"&gt;
        &lt;map:act type="CacheEvent"&gt;
          &lt;map:parameter name="event" value="{request-param:event}" /&gt;
        &lt;/map:act&gt;
        &lt;map:redirect-to uri="demo?pageKey={request-param:pageKey}&amp;amp;rand={random:x}" /&gt;
      &lt;/map:match&gt;
    &lt;/map:pipeline&gt;
  &lt;map:pipelines&gt;</pre>

<h3>Configuration</h3>

<pre>  &lt;!-- Cache event bean --&gt;
  &lt;bean name="org.apache.cocoon.acting.Action/CacheEvent"
    class="org.apache.cocoon.acting.CacheEventAction" scope="prototype"&gt;
    &lt;property name="cache" ref="org.apache.cocoon.caching.Cache/EventAware"/&gt;
  &lt;/bean&gt;</pre>

</body>
</html>


Fields
======
CocoonComponentReference: Action (new field)
CocoonBlock: eventcache (new field)
FQ Java class: org.apache.cocoon.acting.CacheEventAction (new field)