Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07E7B11DE0 for ; Thu, 3 Jul 2014 00:16:37 +0000 (UTC) Received: (qmail 95223 invoked by uid 500); 3 Jul 2014 00:16:36 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 95176 invoked by uid 500); 3 Jul 2014 00:16:36 -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 95163 invoked by uid 99); 3 Jul 2014 00:16:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 00:16:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ken.mcwilliams@gmail.com designates 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 00:16:31 +0000 Received: by mail-oa0-f43.google.com with SMTP id o6so13269031oag.16 for ; Wed, 02 Jul 2014 17:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ov5Ci/iV8hWv3J4FGRWj4TTFVpTd6wMQUlWRqw513/8=; b=s0tweW2nPzxsBcpxXvXiX55DUERInB9wpWm3GwTYtg4x4vWHY6r2NbfqO9k7ZHxL34 mWzU+a+5S6AqjRBDwgblcrRoje1CQUPpXjSX5g2VGlDj+Ez6OswHisRE3euRT9HYpkpL dnDqp+1N/egAvWq6YSlbTOPcJ9fArGe0zGltegPB/e4QbLlY4DQYhmNDrZ4kQ7CpXcJ/ x2+Y8d9z0q6yJrcxfqKxreQ+nGpC4w1Ezpj0tsjwVfl1Wm3jt8TFCIBzMs9fC2HSi9h8 C52ZOcWEBE7oH6YAkf+EvLXSKXL2LNTQxlOZ6ZhddczuvTkapFR/paqTJ0OJTUmpOeYT Ri4Q== MIME-Version: 1.0 X-Received: by 10.60.129.161 with SMTP id nx1mr1234541oeb.28.1404346571373; Wed, 02 Jul 2014 17:16:11 -0700 (PDT) Received: by 10.76.12.170 with HTTP; Wed, 2 Jul 2014 17:16:11 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Jul 2014 18:16:11 -0600 Message-ID: Subject: Re: dynamic interceptor insertion From: Ken McWilliams To: Struts Developers List Content-Type: multipart/alternative; boundary=047d7b2e0b3f87420904fd3eeaa8 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e0b3f87420904fd3eeaa8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you Lukasz I'll put it on my todo list ;) Martin, interceptor stacks are efficient I think the scope struts2 has is very good, still it is fun to push boundaries, one of those fun higher initiatives would be a Web IDE for struts2. You could dynamically build an interceptor stack, and you could step though the stack keeping an eye on the action as part of the debug process, (values before and after interceptor)... So in short no there isn't anything that can't be done with non dynamic stacks, but in the name of learning this web framework and making things more efficient- being able to dynamically alter the stacks is very interesting. At the end the the day the idea was to write out a non-dynamic struts.xml for production deployment. On Wed, Jul 2, 2014 at 1:12 PM, Lukasz Lenart wrote: > 2014-07-02 19:38 GMT+02:00 Ken McWilliams : > > This is somethings I've wanted to do (dynamically change the intercepto= r > > stack), I'm not at a development machine so have not checked the > > plausibility of the following but would like input: > > > > Is it possible to create a custom ActionInvocation object, for this > purpose? > > Is it possible to essentially recreate the functionality of > > ActionInvocation within an interceptor which then delegates to other > > interceptors? > > Hm... yeah, with custom ActionInvocation and ActionProxyFactory should > do the trick, check the REST Plugin to see what must be implemented to > create your own ActionInvocation > > > Regards > -- > =C5=81ukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > --047d7b2e0b3f87420904fd3eeaa8--