Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 55442 invoked from network); 16 May 2008 13:22:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 13:22:28 -0000 Received: (qmail 37950 invoked by uid 500); 16 May 2008 13:22:25 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 37920 invoked by uid 500); 16 May 2008 13:22:25 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 37902 invoked by uid 99); 16 May 2008 13:22:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 06:22:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of musachy@gmail.com designates 209.85.198.232 as permitted sender) Received: from [209.85.198.232] (HELO rv-out-0506.google.com) (209.85.198.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 13:21:39 +0000 Received: by rv-out-0506.google.com with SMTP id b25so153294rvf.47 for ; Fri, 16 May 2008 06:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=AfUjnUYh7C5iPY6Kqh/AOLGikGsilAvDm9OL/6A7JJ0=; b=mDoVblR2CTyPqXwE5Y7lvhYzpO3UGlD+WMcyeUIaItY1dD1X3HCnZYaBjc/027kjXaTKpHDxaKx/t1S2mbtYbkSi0Ausc/WZcU615FogpRMQ38Y5/iFWgAYb1C+4Ndo2yCAK/ezmFJS0EVpLdQs1HONIqm/2uFHFsCfHwIiTvqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OeYuk+nmEjqQafTFY1BivS1YU/7Q1vJyU6Am/8lroR1cCvNDjqUHYqahf2MoOmg5fvLhX/DxQZudJAVop/QpJnHWdIB4EJVEy6hJL8+p1YdzhKyf9earQKfZMWndriybtuc0rwjW6z5CYdGMxAyjaRr2+u0eNyDduNxgFpzAf6M= Received: by 10.141.212.5 with SMTP id o5mr1799584rvq.20.1210944114164; Fri, 16 May 2008 06:21:54 -0700 (PDT) Received: by 10.140.191.1 with HTTP; Fri, 16 May 2008 06:21:54 -0700 (PDT) Message-ID: Date: Fri, 16 May 2008 09:21:54 -0400 From: "Musachy Barroso" To: "Struts Developers List" Subject: Re: [VOTE] Bring Convention plugin into trunk and deprecate Zero Config In-Reply-To: <482D29F6.7000807@blueskyminds.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <436d9a250805132343sf4cc5e6s9c9be3b529b7b034@mail.gmail.com> <482D27DF.2090700@blueskyminds.com.au> <482D29F6.7000807@blueskyminds.com.au> X-Virus-Checked: Checked by ClamAV on apache.org My head is spinning now :). Can you use REST with Xml Conf? musachy On Fri, May 16, 2008 at 2:30 AM, Jeromy Evans wrote: > Jeromy Evans wrote: >> >> I wouldn't rush into this decision. >> >> Users of the REST plugin require @Namespace, @Result, etc annotations. >> Creating a duplicate set of annotations with the same purpose is not >> sensible. >> >> It's appropriate that the REST plugin has a dependency on the plugin that >> auto-populates the Configuration, despite the contrary statement on the >> plugins page. >> Merging the REST plugin with Convention is also not possible as the >> implementation of ActionInvocation and ActionMapper are entirely different >> (the conventions cannot currently be mixed). >> >> There are several issues here: >> - creating a Configuration (via XML, via Annotation) >> - ActionMapping (no problems here, each plugin sets up their own) >> - ActionInvocation (standard or RESTful; they are incompatible) >> - handling unknowns >> >> One situation could be that Configuration is separate from Convention; so >> the developer can choose how the Configuration is setup and then choose >> which mapping & invocation, and unknown handling approach to use. However >> that would require another refactoring. >> >> I think making REST dependent on the Convention plugin is the way to go, >> such that the Configuration is created by Convention (but customized for >> REST *Controller class) and extended with the REST ActionMapper and >> RestActionInvocation. > > On further thought, if it is possible to split up the Convention plugin, > then it could be solved like so: > - Zero Configuration: for all annotations relating to the setup of > Configuration (merge from Convention) > - CodeBehind: implements action mapping, invocation, unknown handling, index > handling (the other half of Convention) > - REST alternative implementation of action mapping, invocation, unknown > handling > > Ideally then REST can be used with ZeroConf or XMLConf, or CodeBehind used > with ZeroConf or XMLConf. Sweet. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org