Return-Path: Delivered-To: apmail-maven-archiva-dev-archive@locus.apache.org Received: (qmail 95760 invoked from network); 25 Feb 2008 19:47:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2008 19:47:03 -0000 Received: (qmail 44687 invoked by uid 500); 25 Feb 2008 19:46:58 -0000 Delivered-To: apmail-maven-archiva-dev-archive@maven.apache.org Received: (qmail 44642 invoked by uid 500); 25 Feb 2008 19:46:58 -0000 Mailing-List: contact archiva-dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: archiva-dev@maven.apache.org Delivered-To: mailing list archiva-dev@maven.apache.org Received: (qmail 44633 invoked by uid 99); 25 Feb 2008 19:46:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 11:46:58 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 124.108.96.112 is neither permitted nor denied by domain of rahul.thakur.xdev@gmail.com) Received: from [124.108.96.112] (HELO rel105.mail.aue.yahoo.com) (124.108.96.112) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 25 Feb 2008 19:46:11 +0000 Received: (qmail 9009 invoked by uid 1000); 25 Feb 2008 19:46:27 -0000 Received: from 124.108.96.73 by rel105.mail.aue.yahoo.com with SMTP; Mon, 25 Feb 2008 11:46:27 -0800 Received: (qmail 18504 invoked from network); 25 Feb 2008 19:46:27 -0000 Received: from unknown (HELO ?192.168.1.64?) (rahul.thakur@xtra.co.nz@122.57.122.78 with plain) by smtp104.tnz.mail.aue.yahoo.com with SMTP; 25 Feb 2008 19:46:27 -0000 X-YMail-OSG: 75DUaigVM1ko94sd7ZIZHBIVbITICtCbvr4cOmA7GMeKZouANFPzS9C17z_cGt2DLw-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <47C31B15.8010208@gmail.com> Date: Tue, 26 Feb 2008 08:46:29 +1300 From: Rahul Thakur Reply-To: rahul.thakur.xdev@gmail.com User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: archiva-dev@maven.apache.org Subject: Re: from plexus to spring... References: <4c39e3030802250137q47fb48c1wf86c50f93528e84e@mail.gmail.com> In-Reply-To: <4c39e3030802250137q47fb48c1wf86c50f93528e84e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Nicolas, Sorry, I have looked at the recent updates to the code, hence my question. Is this 'ready' enough to be used outside Archiva? I'd like to integrate this into Continuum. I think it might make sense to have this module in Plexus SVN repo - wdyt? Good stuff! Cheers, Rahul nicolas de loof wrote: > Hello, > > I've repackaged and improved the spring support for plexus components in a > dedicated poject > --> > https://svn.apache.org/repos/asf/maven/archiva/branches/springy/plexus-spring/ > > This new module provides runtime translation from plexus component > descriptors to a Spring XML context, using a simple XSL file and a custom > ApplicationContext. Any existing plexus jars can then be used in a spring > context. > > It defines a custom spring-namespace. Under the hood a custom > FactoryBean handles plexus components field-injection and (some) lifecycle > interfaces. As I discover plexus features by testing on archiva, I'd be > pleased to get more infos on plexus IoC specificities. > > It also provides a PlexusInSpringTestCase that is a replacement class for > PlexusTestCase, providing equivalent methods and behavior. > > I've applied this (in springy branch) on archiva-policies and archiva-proxy > (with some test failures in latest I have to investigate) > > On this basis and with the required improvements, I thing this is a nice way > to move archiva (or other plexus-based app) to spring and then gradually > refactor plexus components, either using Spring annotation or XML context > files (my +1 for context files). > > Nicolas. > >