Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 51547 invoked from network); 13 Apr 2008 19:11:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2008 19:11:55 -0000 Received: (qmail 9685 invoked by uid 500); 13 Apr 2008 19:11:49 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 9611 invoked by uid 500); 13 Apr 2008 19:11:48 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 9600 invoked by uid 99); 13 Apr 2008 19:11:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2008 12:11:48 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of grek@tuffmail.com designates 216.86.168.178 as permitted sender) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2008 19:10:57 +0000 Received: from [192.168.0.127] (unknown [212.76.37.214]) by smtp.mxes.net (Postfix) with ESMTP id 4411C23E49E for ; Sun, 13 Apr 2008 15:11:06 -0400 (EDT) Message-ID: <48025AC1.70606@tuffmail.com> Date: Sun, 13 Apr 2008 21:10:57 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Cocoon 2.2 - Cocoon Forms 1.0 block: Replacing Avalon's ServiceManager interface with Spring 2 References: <495295EE69BB4B4AAE73D1B0D8AD551801BA298B@ATLAS.computas.int> <3103E084-CEBC-46A2-9FA4-8A7004F55BB4@reverycodes.com> In-Reply-To: <3103E084-CEBC-46A2-9FA4-8A7004F55BB4@reverycodes.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Vadim Gritsenko pisze: > On Apr 10, 2008, at 3:58 PM, Magnus Haraldsen Amundsen wrote: >> I'm looking into the Cocoon Forms 1.0 block (with Cocoon 2.2) and it >> seems very nice. But I see that the Java API example at >> http://cocoon.apache.org/2.2/blocks/forms/1.0/498_1_1.html use >> Avalon's ServiceManager interface. However, at the "New in 2.2" page >> it says that "Cocoon 2.2 doesn't use an Avalon-based component manager >> any more but uses Spring 2 instead.". >> > Cocoon 2.2 internally uses Spring, but it still provides backward > compatibility (as far as it's possible) with Cocoon 2.1, so it > implements Avalon functionality and provides an implementation of > Avalon's ServiceManager. Because of this CForms 1.0 can continue to use > ServiceManager. > > I should also mention that there is CForms version 1.1 which does not > use ServiceManager anymore and is migrated to Spring. > > Links to CForms 1.0 and 1.1: > http://svn.apache.org/repos/asf/cocoon/branches/cocoon-forms-1.0.0/ > http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-forms/ I would add that we have already Spring implementation for Apples, see[1]. This way, Controllers can be just Spring beans so Dependency Injection can be used instead of ServletManager from Avalon. Magnus, since you said you don't know Spring or Avalon I think you will have hard times using Java code in Cocoon. I would say that you don't need to be a master of Spring to use Cocoon but some basics are highly recommended. In this particular case I would advise you to take a look at apples block samples[2][3] and figure out how to migrate them to Spring with help of people from this list. This way you would learn basics and could contribute migrated samples to community so others could benefit. [1] http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-apples/cocoon-apples-impl/src/main/java/org/apache/cocoon/components/flow/apples/SpringApplesProcessor.java?view=markup [2] http://cocoon.zones.apache.org/demos/trunk/cocoon-apples-sample/ [3] http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-apples/cocoon-apples-sample/ -- Grzegorz Kossakowski --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org