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 118CD10FE7 for ; Mon, 7 Apr 2014 16:12:35 +0000 (UTC) Received: (qmail 79837 invoked by uid 500); 7 Apr 2014 16:12:32 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 79109 invoked by uid 500); 7 Apr 2014 16:12:24 -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 79033 invoked by uid 99); 7 Apr 2014 16:12:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 16:12:19 +0000 Date: Mon, 7 Apr 2014 16:12:19 +0000 (UTC) From: "Matt Benson (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PROXY-14) Strategy-Based ObjectProvider 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/PROXY-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Benson updated PROXY-14: ----------------------------- Fix Version/s: 2.x > Strategy-Based ObjectProvider > ----------------------------- > > Key: PROXY-14 > URL: https://issues.apache.org/jira/browse/PROXY-14 > Project: Commons Proxy > Issue Type: New Feature > Affects Versions: 1.0 > Reporter: James Carman > Assignee: James Carman > Fix For: 2.x > > > Implement a strategy-based ObjectProvider. Basically, the provider would choose different strategy objects (that implement the service interface) based on information obtained at runtime during the method invocation. One example would be a strategy-based provider which chose its strategy object based on the type of object passed in as one of the method parameters (similar to HiveMind's strategy support). For example, suppose I have a service interface like: > {code} > public interface Renderer { > public void render(Shape shape); > } > {code} > and I want to provide different implementations for Circle, Rectangle, Triangle, etc., then I would provide a mapping from those types to implementation objects that also implement Renderer. Proxy would create a dynamic proxy that would choose which implementation object to use at runtime based on the type of shape passed in to the render method. -- This message was sent by Atlassian JIRA (v6.2#6252)