cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Dolg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON3-9) Generalize the PipelineCache, so that it can be used as a general purpose cache for PipelineComponents as well.
Date Tue, 04 Nov 2008 06:46:44 GMT

    [ https://issues.apache.org/jira/browse/COCOON3-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644905#action_12644905
] 

Steven Dolg commented on COCOON3-9:
-----------------------------------

Hi Simone,

I don't think we should add automatic reloading of cached resource to the cache itself.
IMO this would add unnecessary complexity to the cache, because it would need to know how
to recreate the resources.
This should be the component's job. (Just compare this with available caching libraries like
Ehcache)

Injecting caches into the PipelineComponents using the sitemap module works as you said (using
an IOC container).
When creating a pipeline using the Pipeline API this has to be done programatically.
Since the components are constructed directly in the code the public setter of the component
itself (instead of the PipelineComponent interface) should be easily possible.

The Cache implementation itself does not need to bother with the CacheKey interface. This
is merely a mechanism to create specific CacheKeys that can be used to check cached resource
for validity and/or create compound cache keys (like the ones for pipelines where the validity
depends on the configuration of all relevant PipelineComponents).

> Generalize the PipelineCache, so that it can be used as a general purpose cache for PipelineComponents
as well.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-9
>                 URL: https://issues.apache.org/jira/browse/COCOON3-9
>             Project: Cocoon 3
>          Issue Type: Improvement
>          Components: cocoon-pipeline
>    Affects Versions: 3.0.0-alpha-1
>            Reporter: Steven Dolg
>            Assignee: Cocoon Developers Team
>             Fix For: 3.0.0-alpha-2
>
>         Attachments: cache-fixed.patch, cache.patch
>
>
> Currently the PipelineCache is very specific for caching the complete results of a pipeline
execution.
> COCOON3-6 is the first issue requiring a caching mechanism at the PipelineComponent level.
> With only some minor modifications the PipelineCache can be used for those requirements.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message