Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8AD5B61B for ; Tue, 10 Jan 2012 16:38:02 +0000 (UTC) Received: (qmail 14002 invoked by uid 500); 10 Jan 2012 16:38:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 13656 invoked by uid 500); 10 Jan 2012 16:38:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 13623 invoked by uid 99); 10 Jan 2012 16:38:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 16:38:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 16:37:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7F36D142DD0 for ; Tue, 10 Jan 2012 16:37:39 +0000 (UTC) Date: Tue, 10 Jan 2012 16:37:39 +0000 (UTC) From: "Simone Tripodi (Closed) (JIRA)" To: issues@commons.apache.org Message-ID: <1008605104.25914.1326213459522.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1814456501.25854.1326212259352.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (CHAIN-63) Replace Context with Map MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CHAIN-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simone Tripodi closed CHAIN-63. ------------------------------- Resolution: Duplicate Fix Version/s: 2.0 Assignee: Simone Tripodi This is a duplicate of CHAIN-58 > Replace Context with Map > -------------------------------------------------- > > Key: CHAIN-63 > URL: https://issues.apache.org/jira/browse/CHAIN-63 > Project: Commons Chain > Issue Type: Improvement > Affects Versions: 2.0 > Reporter: Ales Dolecek > Assignee: Simone Tripodi > Priority: Minor > Fix For: 2.0 > > > Hello, > I always wandered why you *force* chain users to use the Context interface which adds nothing over Map. I would understand that if the Context would not inherit from map and only required > Object put(String, Object) > Object get(String) > But since Context itself IS Map then you gain nothing while disallowing use of Map implementations. I know that sou suggest that Context shall implement "Attribute-Property Transparency" but it is only recomendation and is not forced by commons chains anyway. > And if you define execute like > Object execute(Map context) > it can still accept Context instances and all its subclasses. > The downside is that you would have to give up the retrieve method introduced to Context. And BTW the Context imposes hard restriction see my other bug. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira