Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 73431C02D for ; Tue, 18 Jun 2013 19:07:23 +0000 (UTC) Received: (qmail 23895 invoked by uid 500); 18 Jun 2013 19:07:23 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 23786 invoked by uid 500); 18 Jun 2013 19:07:22 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 23778 invoked by uid 99); 18 Jun 2013 19:07:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 19:07:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of beneritter@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bk0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 19:07:14 +0000 Received: by mail-bk0-f43.google.com with SMTP id jm2so1957427bkc.30 for ; Tue, 18 Jun 2013 12:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=26oDEQjSYPLaezg+gQYkO3wTJqKrGOLsDcu9dHgx/MU=; b=S9unpSA2T6pAop5+AiaYn90jN1GxXl50CNcI4lOlGm2qk+3RPICUFOuezuHMVPwr/0 unIFw2QiQ210K5/7/Gr7QAZV0wZqB+VFgjQYy4un/c59UddpnSXelFlT0D44reAkwsZN BsaZvydarZdGiBCVM22jxje6qHT0pPwAuIWu3hWWFtXWNiwxDCmWws60yMr/3hclxvx5 yIhwPPRQDtgu5UiIlUc+XdGss9KIvmLib85RDFF+Cx/dFZ1Ajyk5hL+OpWh8wZm8tmTC dU+LqG5q32LAaZzZdCwKeZUeE6TRtxa02BBJ1/WSy3UEyOVlaIC4p31uSywn5u6NCjeX XY2A== X-Received: by 10.205.128.203 with SMTP id hf11mr1872252bkc.160.1371582414118; Tue, 18 Jun 2013 12:06:54 -0700 (PDT) Received: from [192.168.2.104] (dslb-178-006-095-044.pools.arcor-ip.net. [178.6.95.44]) by mx.google.com with ESMTPSA id ch16sm6667451bkb.17.2013.06.18.12.06.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Jun 2013 12:06:53 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: [CHAIN] CopyCommand implements two commands at once From: Benedikt Ritter In-Reply-To: Date: Tue, 18 Jun 2013 21:06:59 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9134CCA2-B1E7-4EDE-90A0-C562837BCAEC@gmail.com> References: <9B198150-A444-4E65-BFE9-A1DD6CAE8FFE@gmail.com> <6A0DF379-7414-45A7-963B-685BB5F3EAE9@gmail.com> To: "dev@commons.apache.org List" X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org Am 16.06.2013 um 13:46 schrieb Benedikt Ritter : >=20 > Am 15.06.2013 um 15:52 schrieb Benedikt Ritter : >=20 >>=20 >> Am 14.06.2013 um 22:36 schrieb Benedikt Ritter = : >>=20 >>> Hi, >>>=20 >>> the o.a.c.chain2.generic.CopyCommand IMHO really implements two = commands: >>>=20 >>> * a CopyCommand that copies a value from one key to another >>> * an OverrideCommand, that overrides a value with a provided value. >>=20 >> We could even extract a RemoveCommand from CopyCommand. A = RemoveCommand simply removes getKey() from the context. >=20 > I have created CHAIN-91 [1] for this. If no one objects, I'll = implement this tonight. Just realized we already have a RemoveCommand=85 So no need to = reimplement it. I think is makes sense to remove the = "remove"-functionality from CopyCommand then... >=20 > Benedikt >=20 > [1] https://issues.apache.org/jira/browse/CHAIN-91 >=20 >>=20 >>>=20 >>> What do you think about splitting this up into two separate classes? >>>=20 >>> Regards, >>> Benedikt >>=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org