Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 58844 invoked from network); 1 Jun 2004 09:17:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 09:17:25 -0000 Received: (qmail 50765 invoked by uid 500); 1 Jun 2004 09:17:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 50632 invoked by uid 500); 1 Jun 2004 09:17:18 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 50563 invoked by uid 99); 1 Jun 2004 09:17:18 -0000 Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 02:17:18 -0700 X-Sasl-enc: I4ebBL5rik5u+3rK510V0g 1086081409 Received: from upaya.co.uk (unknown [213.48.13.39]) by www.fastmail.fm (Postfix) with ESMTP id 7CF8CBF74E4 for ; Tue, 1 Jun 2004 05:16:49 -0400 (EDT) Message-ID: <40BC4970.4020507@upaya.co.uk> Date: Tue, 01 Jun 2004 10:16:32 +0100 From: Upayavira User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en, de, ar-kw MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: JXTG and caching References: <40BBBA14.2030402@mobilebox.pl> <40BC39CA.7070305@apache.org> <7CB92C16-B3A7-11D8-A9B2-000A95AF004E@apache.org> <40BC42CE.4070501@apache.org> <40BC465B.1010507@mobilebox.pl> In-Reply-To: <40BC465B.1010507@mobilebox.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Sylvain Wallez wrote: > >> > jx:cache-validity="com.my.NewsHelper.getValidity(news.urgency)"> > > One question: if this NewsHelper is NOT an avalon component (or object > instantiated by flow.createObject) then it doesn't have acces to any > backend logic or data (for example database that stores expiration > time for different news services). Would it be possible to instantiate > this object via flow.createObject analogy? Of course. You could equally well say: sendPage("my-url", {"myObject", myAvalonObject}); Regards, Upayavira