cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [PROPOSAL] Changing Source interface
Date Sun, 19 Aug 2001 02:26:37 GMT
BTW, I just added a module to Excalibur's Scratchpad, that may
be incorporated soon.  It is an active resource monitor.  This
would be the perfect replacement for Source, or as a base class
for Source.

What it allows you to do is hide the logic for re-reading the
resource in a PropertyChangeListener.  The ActiveMonitor checks
the resources every X milliseconds (you can set it to whatever
you like).  The PropertyChangeListener is notified with the
Resource key (name) and the modification times (as Long objects).
That way it can do all the recycling and management from there.

Vadim Gritsenko wrote:
> 
> Hi,
> 
> One more change is required in Source interface as it exist now.
> 
> Problem:
>    <map:match pattern="hello.xsl">
>     <map:generate src="stylesheets/page/simple-page2html.xsl"/>
>     <map:serialize type="xml"/>
>    </map:match>
>    <map:match pattern="hello.html">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="cocoon:/hello.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
> Pipeline assembled by SitemapSource is never released as TraxTransformer in its'
> recycle method just nullifies reference.
> 
> Proposed solution:
> Step 1: Source interface must have some method like recycle(), but it is not a component,
> so may be we should use other method name, like release().
> Step 2: Enforce usage of this method in all users of Source interface.
> 
> Comments?
> 
> Thanks,
> Vadim
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> 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